flat assembler
Message board for the users of flat assembler.

Index > Windows > Creating custom controls

Author
Thread Post new topic Reply to topic
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY 12 Aug 2006, 22:17
I've been programming with Win32API for long time, but just using the normal controls of Win32.
How to create a new control? Ex: A Toggle Button, A new kind of textbox, etc...
I've seen it in HLL's. Is it hard to do the same with raw Win32 ASM?

Thanks
Post 12 Aug 2006, 22:17
View user's profile Send private message Reply with quote
cod3b453



Joined: 25 Aug 2004
Posts: 618
cod3b453 13 Aug 2006, 19:08
You can use RegisterClass[Ex] to create a window class, then you use the new class name with CreateWindow[Ex] like normal. When you create a class you define the classes behaviour and window procedure etc, then you put your code to control the look/behaviour of your new class. You can even create a class that uses win32 objects e.g. like the IP control which just loads 4 edit controls with some subclassing.

HTH
Post 13 Aug 2006, 19:08
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.