Windows Messages help

This is a discussion on Windows Messages help within the C++ Programming forums, part of the General Programming Boards category; What is the message for when a program first starts ?...

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    14

    Windows Messages help

    What is the message for when a program first starts ?

  2. #2
    Registered User
    Join Date
    Jun 2002
    Posts
    14
    WM_CREATE - window
    WM_INITDIALOG - dialog

  3. #3
    looking for the truth moemen ahmed's Avatar
    Join Date
    Feb 2002
    Location
    Egypt
    Posts
    161

    Lightbulb

    I would like to add that when your program starts it call the function WinMain() which calls other functions to do the work of registering the windows ,....etc

    you can put your code to be executed in the begining of the application in the function CWinapp::InitInstance() , which will be called by WinMain(), even before CWinApp::Run() is called( Run() is the function that allows your program to recieve and send messages from and to the system )


    I hope my addition ll help
    Programming is a high logical enjoyable art for both programer and user !!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sending windows messages
    By Ideswa in forum Windows Programming
    Replies: 2
    Last Post: 03-02-2006, 01:27 PM
  2. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 12:14 PM
  3. Windows Rant followed by installation question
    By confuted in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 06-21-2003, 05:42 PM
  4. Codec Bitrates?
    By gvector1 in forum C# Programming
    Replies: 2
    Last Post: 06-16-2003, 09:39 AM
  5. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 10:37 AM

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