News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Dialog units to pixels help

Started by Seb, February 18, 2007, 11:38:20 PM

Previous topic - Next topic

Seb

Hiya! :bg

I'm trying to convert a tool of mine that uses a resource file in which I have the dialogs, buttons etc, defined. I'm trying to convert this tool to use lingo's MMX looper, for fun and experimental use, but I'm having a problem finding out the pixel size from the DLU size. I've checked MSDN and such, but I only found two functions which I really cannot use. What I want to do is translate eg. the DLU values of the dialog which are 247 (width) and 142 (height), but I'm really clueless on how to proceed. Can anyone shed some light on this issue?

Edit: To clarify a bit more, I need the pixel values for the CreateWindowEx calls, if anyone wonders.

Regards,
Seb

hutch--

Seb,

have a look at the API GetDialogBaseUnits() and MapDialogRect().
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php