How do i get the X and Y coordinates of the mouse?
How do i get the handle of a device context?
If there is a static label on a dialog, what message should should i put the code to change the label in?
Printable View
How do i get the X and Y coordinates of the mouse?
How do i get the handle of a device context?
If there is a static label on a dialog, what message should should i put the code to change the label in?
Pos of the mouse.
Handle of a DCCode:POINT pt;
GetCursorPos(&pt);
xcoord = pt.x;
ycoord = pt.y;
Code:HDC mydc = GetDC(hwnd);
GetDC will get the client area of the Window. If you want the whole window, use GetWindowDC.
Use:
where pcNewCaption contains your string.Code:SendMessage(GetDlgItem(hWnd_Dlg, IDC_STATIC), WM_SETTEXT, 0, (LPARAM)pcNewCaption);