Code: Select all
case WM_SIZING:
{
if (hWnd)
{
pRect = (RECT*)lParam;
int a = 2 + 3;
switch( wParam )
{
case WMSZ_BOTTOM:
case WMSZ_BOTTOMLEFT:
case WMSZ_BOTTOMRIGHT:
case WMSZ_LEFT:
case WMSZ_RIGHT:
case WMSZ_TOP:
case WMSZ_TOPLEFT:
case WMSZ_TOPRIGHT:
{
RECT r;
GetClientRect(hWnd, &r);
break;
}
}
}
}
break;
case WM_SIZE:
if (wParam == SIZE_MINIMIZED)
{
}
else if (wParam == SIZE_RESTORED)
{
RECT r;
GetClientRect(hWnd, &r);
}
break;
hoverever putting a brake point: GetClientRect(hWnd, &r);
returns:
(r).left = -858993460
(r.).top = -858993460
(t).right = -858993460
(r).botton = -858993460
@ certains brakepoints i do get the right data, but moslty not ... i'm doing something the wrong here.
i tried various searches on google ... but ...
my gues is ... i'm to fast ... because the actual data is being delivered.