|
-
Oct 13th, 2000, 04:48 PM
#1
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?
-
Oct 13th, 2000, 06:11 PM
#2
Frenzied Member
Pos of the mouse.
Code:
POINT pt;
GetCursorPos(&pt);
xcoord = pt.x;
ycoord = pt.y;
Handle of a DC
Code:
HDC mydc = GetDC(hwnd);
-
Oct 14th, 2000, 08:51 AM
#3
GetDC will get the client area of the Window. If you want the whole window, use GetWindowDC.
-
Oct 14th, 2000, 08:55 AM
#4
Monday Morning Lunatic
Use:
Code:
SendMessage(GetDlgItem(hWnd_Dlg, IDC_STATIC), WM_SETTEXT, 0, (LPARAM)pcNewCaption);
where pcNewCaption contains your string.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|