Any sizes needed for an api is in pixels correct? If so, then if I do the following:
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?
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?
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.