Just Getting Into This Stuff...

This is a discussion on Just Getting Into This Stuff... within the Windows Programming forums, part of the Platform Specific Boards category; I have been taking a little look at Win32 API and I have sort of understood the creation of Windows, ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    545

    Just Getting Into This Stuff...

    I have been taking a little look at Win32 API and I have sort of understood the creation of Windows, I was wondering if it is necessary to know the code that you make it with or just the changes that you would need to make to the code. So far I know how to make a message pop-up when (for example) the window is minimized. How would I output text onto the screen and maybe get an input from the user, like you do with console programming.

  2. #2
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    Don't you feel you need a tutorial?
    http://www.winprog.org/tutorial/
    http://www.adrianxw.dk/SoftwareSite/index.html
    As I remember Win32 meesage box function gets its message as an argument.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  3. #3
    Registered User
    Join Date
    Nov 2005
    Posts
    545
    Ok, the forge'r's tutorial has stuff about text but it is written in C, whereas the tutorial I use is in C++ but doesn't seem to say anything about text.

  4. #4
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Tutorial in C++ involving text with textout and some simple operations with edit controls

    http://www.relisoft.com/win32/generic.html
    http://www.relisoft.com/win32/controls.html

    You could use the simple control thing by plugging something like this into your code (inside WM_CREATE or something)

    Code:
    HWND hEdit = CreateWindow("EDIT", "", WS_CHILD | WS_VISIBLE, 10, 10, 50, 20, hwnd, (HMENU) 0x1234, GetModuleHandle(0), 0);
    
    Edit edit(hwnd, 0x1234);
    And then do stuff with edit. Alternatively you could learn about resources and create resource based controls instead of createwindow.

    ╔╗╔╦══╦╗╔╦══╦╗
    ║╚╝║╔╗║╚╝║╔╗║║
    ║╔╗║╠╣║╔╗║╠╣╠╣
    ╚╝╚╩╝╚╩╝╚╩╝╚╩╝

    codez http://code.google.com/p/zxcvbn/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tab key stuff. C+WinAPI is killing me. Please help.
    By Templario in forum Windows Programming
    Replies: 5
    Last Post: 11-21-2002, 02:35 PM
  2. arguments, directories and stuff...
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 06-26-2002, 05:46 PM
  3. Your stuff
    By smog890 in forum C Programming
    Replies: 6
    Last Post: 06-13-2002, 11:50 PM
  4. Linked lists and file i/o, and some other stuff
    By ninja in forum C++ Programming
    Replies: 9
    Last Post: 05-19-2002, 07:15 PM
  5. DirectX 8.1 SDK Tutorials And Stuff
    By c++_n00b in forum Game Programming
    Replies: 3
    Last Post: 04-06-2002, 08:01 AM

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