News:

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

how to make a button and editboxes?

Started by xellos, November 01, 2010, 07:50:04 PM

Previous topic - Next topic

xellos


jj2007

MSDN: Creating a button
(if you don't understand, try in Visual Basic first)

xellos

well i dont understand how to use that in asm

jj2007

Quote from: xellos on November 01, 2010, 08:33:53 PM
well i dont understand how to use that in asm

Start with studying icztutes\tute09. If you don't yet have the tutes, google for icztutes, or go here and search the page for icz.

Afterwards, post your code and we will help you.

Farabi

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

cman

Use CreateWindowEx like:



szText btnClass,"BUTTON"

invoke CreateWindowEx ,0 , ADDR btnClass,lpText, WS_CHILD or WS_VISIBLE,
xButtonPosition , yButtonPosition ,buttonWidth ,
buttonHeight , hParent , buttonControlID ,
hInstance ,NULL



heres the function's prototype:


HWND CreateWindowEx(

DWORD  dwExStyle, // extended window style
LPCTSTR  lpClassName, // address of registered class name
LPCTSTR  lpWindowName, // address of window name
DWORD  dwStyle, // window style
int  x, // horizontal position of window
int  y, // vertical position of window
int  nWidth, // window width
int  nHeight, // window height
HWND  hWndParent, // handle of parent or owner window
HMENU  hMenu, // handle of menu, or child-window identifier
HINSTANCE  hInstance, // handle of application instance
LPVOID  lpParam // address of window-creation data
);