New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
void CMFCAppDlg::AddWS_EX_CONTROLPARENT(HWND theWnd)
{
bool hasChild = FALSE;
HWND tempWnd = NULL;
tempWnd = ::GetWindow(theWnd,GW_CHILD);
while(tempWnd != NULL)
{
hasChild = TRUE;
AddWS_EX_CONTROLPARENT(tempWnd);
tempWnd = ::GetNextWindow(tempWnd, GW_HWNDNEXT);
}
if(hasChild)
{
DWORD currStyle = ::GetWindowLong(theWnd, GWL_EXSTYLE) ;
currStyle = currStyle | WS_EX_CONTROLPARENT;
::SetWindowLong(theWnd, GWL_EXSTYLE, currStyle);
}
}
Stefan
>Has anyone tried to use the latest grid control from MFC/C++ unmanaged code and is it technically possible? Also any sample would be greatly appreciated.
>
>Thanks in advance,
>Pawel
>