Window class names used by the Win32 API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AdrianH
    Recognized Expert Top Contributor
    • Feb 2007
    • 1251

    Window class names used by the Win32 API

    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
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Just search MSDN for Win32 classes.

    To enumerate windows check out the various EnumWindows functions in MSDN.

    Comment

    • AdrianH
      Recognized Expert Top Contributor
      • Feb 2007
      • 1251

      #3
      Originally posted by weaknessforcats
      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 ;)).
      Originally posted by weaknessforcats
      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

      Comment

      • Savage
        Recognized Expert Top Contributor
        • Feb 2007
        • 1759

        #4
        Originally posted by AdrianH
        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

        Comment

        • Banfa
          Recognized Expert Expert
          • Feb 2006
          • 9067

          #5
          Originally posted by Savage
          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.

          Comment

          • AdrianH
            Recognized Expert Top Contributor
            • Feb 2007
            • 1251

            #6
            Originally posted by Banfa
            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

            Comment

            Working...