Thread: cant display status bar

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    113

    cant display status bar

    hi im tryin to create a status bar for my main window , i place the CreateWindow() inside the WM_CREATE: in the window procedure
    what im doing wrong?

    Code:
    //window proc
    ...
    HWND hStatus;
        switch (message)                  /* handle the messages */
        {
            case WM_CREATE:
                hStatus=CreateWindow("msctls_statusbar32", "Ready",WS_CHILD|WS_VISIBLE,0,0,0,0,hwnd,(HMENU)NULL,GetModuleHandle(NULL), NULL);
    in cant see the staus bar in the main window
    and is the WM_CREATE: of winproc the best place to create the status bar?
    thanks for any help
    Last edited by terracota; 12-02-2004 at 12:20 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. status bar flickering
    By rakan in forum Windows Programming
    Replies: 5
    Last Post: 01-07-2008, 10:11 PM
  2. beach bar (sims type game)
    By DrKillPatient in forum Game Programming
    Replies: 1
    Last Post: 03-06-2006, 01:32 PM
  3. Status bar
    By maxorator in forum Windows Programming
    Replies: 3
    Last Post: 11-06-2005, 11:45 AM
  4. Troubles with Sockets
    By cornholio in forum Windows Programming
    Replies: 6
    Last Post: 10-26-2005, 05:31 AM
  5. Disabling "Ready" & Other Auto Status Bar Updates :: MFC
    By kuphryn in forum C++ Programming
    Replies: 1
    Last Post: 04-03-2002, 08:51 PM