Any sizes needed for an api is in pixels correct? If so, then if I do the following:



invoke CreateWindowEx,\
NULL,\
ADDR WndClsConfig,\
ADDR ConfigTitle,\
WS_BORDER,\
CW_USEDEFAULT,\
CW_USEDEFAULT,\
565,\ ;width in pixels
380,\ ;height in pixels
NULL,\
NULL,\
hInstance,\
NULL


The above looks fine on my monitor, but on a different (larger) monitor, it will look screwy right? How can I use twips (not twerps :grin: ) so my window dimensions are the same on all monitors?
Posted on 2002-06-21 16:10:36 by Gunner
I'm not sure but check out SetMapMode(MM_TWIPS) and DPToLP combo, haven't tried this yet. You probably need to test this during the WM_CREATE message.
Posted on 2002-06-21 18:33:04 by stryker