Hello all! as youd guess im new to win32asm, following the Icz's tutorial with joy!
but now im stuck... as the subject said i cant the child window controls to work, the program assembles without errors and the WM_CREATEmsg is sent. but out of some reason the childwindows doesent appear. ive gone through the code a million times but i cant see whats wrong. i know this is like asking "my computer doesent start, whats wrong?" but basicly I wonder if there's some regular noob-catch that ive hooked up on here..?
ill attach the sourcecode (irewrote the code from the tut basiclyl just to learn it =).
but now im stuck... as the subject said i cant the child window controls to work, the program assembles without errors and the WM_CREATEmsg is sent. but out of some reason the childwindows doesent appear. ive gone through the code a million times but i cant see whats wrong. i know this is like asking "my computer doesent start, whats wrong?" but basicly I wonder if there's some regular noob-catch that ive hooked up on here..?
ill attach the sourcecode (irewrote the code from the tut basiclyl just to learn it =).
well u need to register your class if they are not predifned controls
If lpClassName is a string, it specifies the window class name. The class name can be any name registered with the RegisterClass function or any of the predefined control-class names. For a complete list, see the following Remarks section.
so i changed your class name in your .inc to predefined control class
====================
your orig
====================
knappN db 'skapa msgbox',0
knappC db 'knappklass',0
EboxC db 'eboxklass',0
EboxN db 'S?g det h?r!!',0
==========================
after changing
=========================
knappN db 'skapa msgbox',0
knappC db 'Button',0 <---------- changed this
EboxC db 'Edit',0 <----------- changed this
EboxN db 'S?g det h?r!!',0
==============================================
it works
so if you want to use that knappclass and ebox class register it first or use predefined controls
If lpClassName is a string, it specifies the window class name. The class name can be any name registered with the RegisterClass function or any of the predefined control-class names. For a complete list, see the following Remarks section.
so i changed your class name in your .inc to predefined control class
====================
your orig
====================
knappN db 'skapa msgbox',0
knappC db 'knappklass',0
EboxC db 'eboxklass',0
EboxN db 'S?g det h?r!!',0
==========================
after changing
=========================
knappN db 'skapa msgbox',0
knappC db 'Button',0 <---------- changed this
EboxC db 'Edit',0 <----------- changed this
EboxN db 'S?g det h?r!!',0
==============================================
it works
so if you want to use that knappclass and ebox class register it first or use predefined controls
thank you so much! works perfectly!:alright: