Thread: I made a window... now how do I fill it?

  1. #16
    Registered User
    Join Date
    Nov 2002
    Posts
    48
    I have the text working

  2. #17
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> I couldn't care less how it works if it does what I want it to do

    You won't go very far with an approach like that - friendly advice.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #18
    Registered User
    Join Date
    Nov 2002
    Posts
    48
    Probably not, but will giving up get me farther?

  4. #19
    Registered User
    Join Date
    Nov 2002
    Posts
    48
    Now... how do I make a text edit box and a button, then when the button is pressed the text in the box is set to a char array? And how do I make a button press call a function?

    PLEASE don't post a URL, I never find what I'm looking for... they don't help :/

  5. #20
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Originally posted by SMB3Master
    Now... how do I make a text edit box and a button, then when the button is pressed the text in the box is set to a char array? And how do I make a button press call a function?

    PLEASE don't post a URL, I never find what I'm looking for... they don't help :/
    All the information you need to get going has already been provided. You will learn very quickly that people who choose to help others here tend to be a LOT more helpful with people who are willing to put a little effort in themselves.

    Search this board for more information; read up on msdn - the windows controls link I mentioned earlier in this thread is a very good starting point and you should, if you read it thoroughly, find a few simple examples and discussions that will help. Also, the link I provided to Adrianxw's sample code from this very board also has some advice on where to get more information. If links don't work then try them later; I couldn't get near cprog for a while a few hours ago (the link to Adrianxw's example works perfectly well just now).

    If you follow this simple advice you will be helping us all to help you.

    Things to look up/read up on: CreateWindowEx - used to create controls; WM_COMMAND - message which controls use to communicate with their parent window (generally; referred to as notification messages); BN_CLICKED - notification messages sent to the parent of a button when that button is clicked; SetWindowText - changes the text/caption of a control if it has one.

  6. #21
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> Probably not, but will giving up get me farther?

    Frankly, yes.

    Solving the technicalities of a problem is the fun bit, the creative bit, whatever. You can always find help there.

    Establishing the problem to solve requires a mind-set. When you have a customer who does not really know what they want, but they know they have a problem. A fumbling, errrrmmm, I don't know, I'll ask someone else, errmm, or search the web, errmmm, or...

    Let me cut it short, the customer will tell you to "go away", or maybe less polite.

    Programming is about solving problems, if you aren't up to solving problems, then yes, giving up will probably get you further. You'll do something else.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  7. #22
    Registered User
    Join Date
    Nov 2002
    Posts
    48
    Well I'd have to disagree with that, I'm not giving up.

  8. #23
    Registered User
    Join Date
    Jan 2002
    Posts
    64
    Way to go SMB3Master thats the spirit.

    I Started driving cars years ago and took no lessons or tried to practice, i just kept getting in to cars and crashing them, so far i've wrecked 104 cars and still going strong.

    Can anyone tell me how to drive a car, no links or instructors please, can someone just inject it into my head while i'm sleeping that way its easier for me.

  9. #24
    Registered User
    Join Date
    Feb 2002
    Posts
    73
    It is unreasonable to expect to advance in Windows programming if you don't know how things work. It sounds to me like you lack a basic understanding of Windows programming. I would suggest reading the tutorials here:
    http://winprog.org/tutorial/

    Best of luck to you, and don't give up! ^_^

  10. #25
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Get Windows Programming from the Ground Up by Herbert Schildt and read it. I just started it (on chapter 3) but I can tell already that it's good.
    Away.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Button positioning
    By Lionmane in forum Windows Programming
    Replies: 76
    Last Post: 10-21-2005, 05:22 AM
  2. Adding colour & bmps to a Win 32 Window??
    By carey_sizer in forum Windows Programming
    Replies: 4
    Last Post: 09-04-2004, 05:55 PM
  3. no errors but still errors
    By Megatron in forum Windows Programming
    Replies: 7
    Last Post: 01-12-2003, 11:21 PM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM
  5. How to change window style at runtime?
    By Mr. Bitmap in forum Windows Programming
    Replies: 5
    Last Post: 06-09-2002, 04:49 PM