Thread: Window Class?

  1. #1
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    Window Class?

    Instead of having to create the window every single time... is there anyone who actually made an external class inside a header file that I can download that holds all of the window making stuff... while you declare the variables in the main part of the program?

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    If I understand you correctly, you want Visual Basic. It's called a form.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    ...

    I didn't quite understand your answer... was that supposed to mean that I shouldn't be doing win32 c++ but instead visual basic?

  4. #4
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    Sorry, I was in a bad mood when I did that.
    Instead of having to create the window every single time... is there anyone who actually made an external class inside a header file that I can download that holds all of the window making stuff... while you declare the variables in the main part of the program?
    a window is an instance of a windowclass much the same way that an object is an instance of a class in C++. You will always create a new window but I think you're looking to have a stock windowclass? That's kinda like saying you want to have a single class for all purposes in C++ and only use that. impossible right? everything in windows works through different types of windows and you need to be able to make different windowclasses.

    option 2: you want to use object oriented windows and set properties for the windowclass on an object. If that's what you want you may seriously want to look at MFC.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  5. #5
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    You could make your own library of windows. You could write some macros. You could use MFC or WxWindows. Of course the VB idea is solid

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  2. creating a child window
    By rakan in forum Windows Programming
    Replies: 2
    Last Post: 01-23-2007, 03:22 PM
  3. how i create a window whith all it's elements
    By rasheed in forum Windows Programming
    Replies: 1
    Last Post: 05-31-2006, 06:53 PM
  4. Window Wrapper Class, WM_NCCREATE never sent
    By bennyandthejets in forum Windows Programming
    Replies: 5
    Last Post: 04-18-2004, 06:02 AM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM