Remembering how to register a window

This is a discussion on Remembering how to register a window within the Windows Programming forums, part of the Platform Specific Boards category; Ok, I am starting DirectX and learned how to create a window, which is not DirectX, but I must learn ...

  1. #1
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719

    Angry Remembering how to register a window

    Ok, I am starting DirectX and learned how to create a window, which is not DirectX, but I must learn it. I am having trouble remembering the parts of the class structure and functions involved (WinProc, WinAPI, etc.) This is just for a basic window to let you know. So how do you remember all this stuff? Is it just repetition?

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,263
    I guess so. If you also read books on the thinking behind Windows you'll understand the reasons behind window classes and other things too, which helps a lot.

  3. #3
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    The stuff that you mentioned, you'll probably just memorize by repetition after awhile. Specifics really aren't that important, though; for example, you don't need to memorize all of the members of the WNDCLASSEX structure, or all the different window styles, or every window message.

    I don't think anyone memorizes everything (i.e., all the arguments to functions, struct members, etc.) The trick is learning how things work in general, then using a reference for the rest. Once you understand msdn explanations, a lot of it becomes simply looking at the documentation.
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 07:14 AM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  3. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  4. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 10:06 AM
  5. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM

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