Like Tree1Likes
  • 1 Post By SMurf

What's the difference between WNDCLASS and WNDCLASSEX?

This is a discussion on What's the difference between WNDCLASS and WNDCLASSEX? within the Windows Programming forums, part of the Platform Specific Boards category; What's the difference between WNDCLASS and WNDCLASSEX? Which one is better? Any help will be appreciated....

  1. #1
    C/C++Newbie Antigloss's Avatar
    Join Date
    May 2005
    Posts
    212

    What's the difference between WNDCLASS and WNDCLASSEX?

    What's the difference between WNDCLASS and WNDCLASSEX?
    Which one is better?

    Any help will be appreciated.
    Last edited by Antigloss; 03-16-2006 at 04:32 AM.

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,266
    Do you want to define your window's small icon (the one shown on the taskbar and in its corner if it has a caption)?

    If yes, then WNDCLASSEX is better.
    Rod Gaskins likes this.

  3. #3
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    WNDCLASS goes with CreateWindow, WNDCLASSEX goes with CreateWindowEx.
    My Website
    010000110010101100101011
    Add Color To Your Code!

  4. #4
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,266
    Quote Originally Posted by mrafcho001
    WNDCLASS goes with CreateWindow, WNDCLASSEX goes with CreateWindowEx.
    Bear in mind that the only difference between CreateWindow and CreateWindowEx is the addition of extended styles to the latter. You can use either type of window class structure with them.

    CreateWindow these days resolves to CreateWindowEx(0, ...)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. converting to WNDCLASSEX
    By Darth in forum Windows Programming
    Replies: 2
    Last Post: 12-07-2007, 04:31 PM
  2. DialogBoxIndirect(...) vs. WNDCLASS, CreateWindow etc.
    By SMurf in forum Windows Programming
    Replies: 1
    Last Post: 11-30-2003, 05:07 AM
  3. Wndclassex And Wndclass
    By rip1968 in forum Windows Programming
    Replies: 3
    Last Post: 03-15-2003, 10:47 AM
  4. wndclass data questions
    By stallion in forum Windows Programming
    Replies: 4
    Last Post: 01-29-2003, 09:01 PM
  5. WNDCLASSEX vs. WNDCLASS (Newbe) ???
    By niklaskr in forum Windows Programming
    Replies: 3
    Last Post: 06-19-2002, 09:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21