Win32 API beginner questions and dooubts

This is a discussion on Win32 API beginner questions and dooubts within the Windows Programming forums, part of the Platform Specific Boards category; Hi! I'm just starting to learn win32 api c++. I've been going through online tutorials and trying to understand things. ...

  1. #1
    Registered User
    Join Date
    May 2013
    Posts
    1

    Win32 API beginner questions and dooubts

    Hi!
    I'm just starting to learn win32 api c++. I've been going through online tutorials and trying to understand things.
    But in none of the tutorials have I found a way to create the GUI using drag and drop like in C# or Java Swing.
    Isn't there a functionality to drag and drop check boxes, radio buttons, text fields, etc. Does every component have to be coded?

    Also, while reading through I found this. If somone could explain it, it would be great!
    "A more commonly used method is to define you edit box in your resource file, rather than to create it "on the fly" with CreateWindow() or CreateWindowEx()."
    From what I've understood so far, resource file can be used for user defined controls such as a different shaped pointer or an icon. So how can I create an edit box in the resource file?

    Thanks a lot for the help!!!

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    What IDE are you using?

    MS Visual Studio (all editions) has a "resource editor" where you can drag a control onto a dialog and get the IDE to generate the code behind it (exactly the same as C#, as it is the same IDE).

    Look for 'ToolBox' in the View menu of MS VS.

    This uses a file to store the params used in CreateWindow() [type, position, etc]. Just adding the control using the Resource Editor will add the required params to the resource files.
    "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. GDIMario in Win32 API - Questions
    By nXqd in forum Game Programming
    Replies: 0
    Last Post: 05-12-2010, 11:39 AM
  2. A few beginner's questions
    By Megidolaon in forum C++ Programming
    Replies: 33
    Last Post: 10-24-2008, 09:21 AM
  3. questions about win32 control
    By joltios in forum Windows Programming
    Replies: 3
    Last Post: 01-10-2006, 05:08 AM
  4. Win32 API Questions
    By CPP-Null in forum C++ Programming
    Replies: 1
    Last Post: 05-25-2003, 04:26 PM
  5. Beginner on Win32 apps, lame question.
    By Templario in forum C Programming
    Replies: 3
    Last Post: 11-06-2002, 07:39 PM

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