Results 1 to 2 of 2

Thread: Creating Mulipart Statusbar

  1. #1

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827

    Creating Mulipart Statusbar

    Hi, I want to create a multipart statusbar but it does not seem to work. Here is what I am doing:

    Code:
    static int iwidth[2];
    	statushwnd = CreateWindowEx(NULL, 
    								STATUSCLASSNAME,
    								"",
    								WS_CHILD | WS_VISIBLE | SBS_SIZEGRIP,
    								0,
    								0,
    								0,
    								0,
    								winhwnd,
    								(HMENU) ID_STATUSBAR,
    								hinst,
    								NULL);
    
    
    	SendMessage(statushwnd, SB_SETTEXT, 0 , (LPARAM)"Part #1"); 
    	SendMessage(statushwnd, SB_SETTEXT, 1 | SBT_POPOUT, (LPARAM)"Part #2");
    
    
    case WM_SIZE:
    
    	iwidth[1] = LOWORD(lparam) / 2;
    		iwidth[2] = -1;
    		SendMessage(statushwnd, SB_SETPARTS, 4, (LPARAM)iwidth);
    I can see two parts but I am unable to see the text on them.

    Do you know what is wrong??
    Baaaaaaaaah

  2. #2

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    dam it!

    Where is everybody? I was expecting the answer within 5 minutes but... it is now more than 24 hours passed
    Baaaaaaaaah

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width