By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,918 Members | 2,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,918 IT Pros & Developers. It's quick & easy.

Window class names used by the Win32 API

AdrianH
Expert 100+
P: 1,251
Hi, I know that there are a bunch of window class names used in the Win32 API (I think "BUTTON" is one). Does anyone know a good web reference for all of these so I can create them dynamicly using the CreateWindow() function?

I'm making a dynamicly variable tool window and is the reason why I need the names.

Further, is there a way of iterating though all of the registered window classes?

Thanks,


Adrian
Jun 3 '07 #1
Share this Question
Share on Google+
5 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
Just search MSDN for Win32 classes.

To enumerate windows check out the various EnumWindows functions in MSDN.
Jun 3 '07 #2

AdrianH
Expert 100+
P: 1,251
Just search MSDN for Win32 classes.
Not hugely helpful. I've tried this in the past with limited success. I've just tried it now and having the same limited success.

Note: I am not a HUGE Win32 developer. Stuff I've done is pretty rudimentary using MFC and the Win32 API, it was enough to make some fairly impressive apps (my employer though so at the time anyway ;)).
To enumerate windows check out the various EnumWindows functions in MSDN.
This is for walking windows and their children have instances already. I just wanted to see what types are available and maybe search on those terms.


Adrian
Jun 3 '07 #3

Savage
Expert 100+
P: 1,764
Hi, I know that there are a bunch of window class names used in the Win32 API (I think "BUTTON" is one). Does anyone know a good web reference for all of these so I can create them dynamicly using the CreateWindow() function?

I'm making a dynamicly variable tool window and is the reason why I need the names.

Further, is there a way of iterating though all of the registered window classes?

Thanks,


Adrian
Is this helpfull to u?

Savage
Jun 3 '07 #4

Banfa
Expert Mod 5K+
P: 8,916
Is this helpfull to u?
That is a link into the help files and not available to most people.


Adrian there are 3 types of predefined Window classes

MIDCLIENT
An MDI program puts a window in it's cient area to manage the document windows, there is a specific class for this window

DIALOG BOX
Dialog boxes have a specific class, however you don't need to know what it is because there are such a different subclass of windows that WIN32 API provides extra functions to create dialog boxes instead of using CreateWindow with a specified class.

Controls
This is what I assume you are interested in, the class names to create various controls, they are actually listed on MSDN here in the CreateWindow documentation.
Jun 3 '07 #5

AdrianH
Expert 100+
P: 1,251
That is a link into the help files and not available to most people.

Controls
This is what I assume you are interested in, the class names to create various controls, they are actually listed on MSDN here in the CreateWindow documentation.
Yeah, this was what I was referring to. Not sure how I missed it. I thought I looked up CreateWindow() already.

Thanks,


Adrian
Jun 3 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.