-
Ah crap, I came back and pressed back on my browser and it reposted! Oh well, i guess ill have to try what you were saying. so RECT rect; to declare it but how would i capture teh coordinates? Hmm.... Would I have to make a different Bitmap for each Text? or could i still have them all on the same bmp? Thanks..
btw, I think lParam is Y and wParam is X.
-
struct RECT{
intn left;
int top;
int right;
int bottom;
};
struct POINT {
int x;
int y;
}
No need to make a bitmap this way- just measure!!
-
To capture the coods
case WM_LBUTTONDOWN:
ClickedPoint=MAKEPOINTS(lParam);
Don't forget this is client coods for the dialog. May need screen coods (Look up the macro for that)
Watch that your variables in the callback are declared 'static' if you need them next msg. ie the HWND of the ctrls.
Or use
GetClientRect(GetDlgItem(hDlg, ID_CTRL),&Rect);
To filter non mouse click msg's from the button
case ID_BUTTON:
if(HIWORD(wParam)==BN_CLICKED)