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?
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
);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.