Status bar

This is a discussion on Status bar within the Windows Programming forums, part of the Platform Specific Boards category; I have searched the forum for answers to my question, but it seems that its still now working, even with ...

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    29

    Status bar

    I have searched the forum for answers to my question, but it seems that its still now working, even with the answers other people already received.
    I use Dev-C++
    Ive made sure it loads
    ../lib/libodbccp32.a
    ../lib/libcomctl32.a

    Code:
    #include <commctrl.h>
    #define IDC_MAIN_STATUS	1001
    HWND hStatus;
    int statwidths[] = {100, -1};
    
    InitCommonControls(); 
    hStatus = CreateWindowEx(NULL, STATUSCLASSNAME, NULL,  WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, 
    hwnd, (HMENU)IDC_MAIN_STATUS, GetModuleHandle(NULL), NULL);
    
    SendMessage(hStatus, SB_SETPARTS, 3, (LPARAM) statwidths);
    SendMessage(hStatus, SB_SETTEXT, 0, (LPARAM) "some text 1");
    But it doesnt show the status bar at all.Ive used error checks, but it seems that its all running fine?Can someone help me on this?

    EDIT:
    I actually even think it isnt compiling...altough there are no error messages.When i change something in my program, it doesnt appear on screen..?
    Last edited by Nephiroth; 01-29-2006 at 02:30 AM.

  2. #2
    Registered User
    Join Date
    Sep 2003
    Posts
    23
    Try this:

    Code:
    SendMessage(hStatus, SB_SETPARTS, 2, (LPARAM) statwidths);
    This should work, I hope.

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, 06: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

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