Thread: What's the difference between WNDCLASS and WNDCLASSEX?

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

    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 05:32 AM.

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    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.

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