Original Post
Which message is responsible for drawing a control item in win32? It doesn´t seems to be WM_PAINT...
Zeblar Nagrim, Lord of Chaos
case WM_PAINT:
CChildWnd* pDialog;
pDialog = GetChildFromID(IDD_DIALOG2);
if(pDialog != NULL)
{
HWND hwnd = pDialog->m_hWnd;
HWND control = GetDlgItem(hwnd, IDC_STATICLABEL);
if(control != NULL)
{
if(p_hWnd == control)
{
// This never happend.
return 0; // return zero (do not paint)
}
}
}
break;
|
Zeblar Nagrim, Lord of Chaos