Thread: organizing window handles

  1. #1
    Registered User
    Join Date
    Jan 2005

    organizing window handles

    I am looking for suggestions on organizing window handles.

    While learning windows programming, it's not a problem as only a few windows are created. But as you build a project, keeping track of the handles gets more complex. How do you organize them? A global link list? A fixed array? Groups of data structures?

    I apologize if this is too elementary a question, sometimes I make the simple things more difficult than they are.

    Just wondering

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Your question is to vague. How you organise your handles is part of your system design. What specific problem are you facing?
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Jan 2005
    I guess I am just a jumble of thoughts. Never mind.

    Thanks anyway

  4. #4
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Republika Srpska - Balkan
    Put handles in classes. Thats all.
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  5. #5
    train spotter
    Join Date
    Aug 2001
    near a computer
    I get the handle as/when required using the resource ID#.

    Resource ID# don't change each time you run your app.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

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, 08:14 AM
  2. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  3. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  4. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  5. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM