Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving the print dialog

Status
Not open for further replies.

hadas

Programmer
Oct 30, 2002
3
0
0
DE
Hi,
I want to move the print dialog so it won't appear in the center of the screen but on the left side.
I've looked in several help pages and couldn't find anything regarding the location of the print dialog.
How do I move its location?

Thank you
Hadas
 
This is a two stage operation.

Step 1 : Get the handle of the print dialog window using the FindWindow API function.

HWND FindWindow(

LPCTSTR lpClassName, // pointer to class name
LPCTSTR lpWindowName // pointer to window name
);

Once you have the Windows handle...
Step 2 : Use the Move Window function

BOOL MoveWindow(

HWND hWnd, // handle of window
int X, // horizontal position
int Y, // vertical position
int nWidth, // width
int nHeight, // height
BOOL bRepaint // repaint flag
);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top