News:

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

CreateWindowEx question

Started by ragdog, August 01, 2008, 06:33:10 PM

Previous topic - Next topic

ragdog

hi

I create a editbox or static field with CreateWindowEx
where can i get this coordinates can i get from resource editor?

   CONTROL "&String:", -1, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 7, 32, 49, 10
   CONTROL "", 1010, EDIT, ES_LEFT | ES_AUTOHSCROLL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 60, 30, 60, 12


i use EditSl and static from masm package!

greets

jj2007

I can tell you how to do it "by hand":
- trap a VK_LEFT, right etc message
- use MoveWindow to move your controls until you like them.

ragdog

thanks!

my problem is solved
i use spy++ for spying the coordiantes from a exist dialog what i makit with radasm
and copy this in my routine.



hutch--

ragdog,

As long as you have a procedure for the dialog you create with resources, you get the info you are after in the WM_INITDIALOG message as it starts and use APIs like GetClientRect() or GetWindowRect() for coordinated and you can convert between them with ScreenToClient() or ClientToScreen().
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php