|
-
April 29th, 1999, 06:44 PM
#1
screensize
Hi, I´ve created a popup-dialog that I want to be center on the screen. What fuction will give me the screensize? I want it to be centered in all screenresolutions. Please help me.
Frederik.
-
April 29th, 1999, 08:25 PM
#2
Re: screensize
if you do
SetCursorPos(2000,2000);
the cursor go at this position, but because screen is shorter
like 800,600 the cursor don't go farther, you have to do
GetCursorPos you will know wath is the bottom right corner
and the rest should be easy.
BOOL GetCursorPos(
LPPOINT lpPoint // address of structure for cursor position
);
you have to include winuser.h
-
April 29th, 1999, 10:15 PM
#3
Re: screensize
Cwnd::CenterWindow()
Sally
-
April 30th, 1999, 05:40 AM
#4
Re: screensize
CentreWindow() centers relative to the parent window. To centre the window relative to the screen, use
CenterWindow(CWnd::GetDesktopWindow());
Dave
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
|