Thread: Status Window

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    A source of questions... Benji Wiebe's Avatar
    Join Date
    Mar 2011
    Location
    Durham, Kansas
    Posts
    69
    Quote Originally Posted by Niara View Post
    Also you have to start the common controls to work with them; if you haven't done it yet see the reference for 'InitCommonControls()' and 'InitCommonControlsEx()' functions.

    Hope that helps
    I do have the code
    Code:
    LPINITCOMMONCONTROLSEX cmmnctrls=malloc(sizeof(cmmnctrls));
        cmmnctrls->dwSize=sizeof(cmmnctrls);
        cmmnctrls->dwICC=ICC_STANDARD_CLASSES | ICC_BAR_CLASSES;
        InitCommonControlsEx(cmmnctrls);
    at the start of the WinMain function.
    Ever notice how fast Windows runs?
    Neither did I.
    Which is why I switched to Linux.

  2. #2
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    639
    Quote Originally Posted by Benji Wiebe View Post
    I do have the code
    Code:
    LPINITCOMMONCONTROLSEX cmmnctrls=malloc(sizeof(cmmnctrls));
        cmmnctrls->dwSize=sizeof(cmmnctrls);
        cmmnctrls->dwICC=ICC_STANDARD_CLASSES | ICC_BAR_CLASSES;
        InitCommonControlsEx(cmmnctrls);
    at the start of the WinMain function.
    That doesn't work

  3. #3
    A source of questions... Benji Wiebe's Avatar
    Join Date
    Mar 2011
    Location
    Durham, Kansas
    Posts
    69
    Quote Originally Posted by adeyblue View Post
    That doesn't work
    Why not?!
    Ever notice how fast Windows runs?
    Neither did I.
    Which is why I switched to Linux.

  4. #4
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    639
    Quote Originally Posted by Benji Wiebe View Post
    Why not?!
    Quote Originally Posted by Niara, of your initial post
    Also wait a moment: what does it mean "I can not make it work."?
    Not quite so palatable when the boot's on the other foot is it? If you provide well defined problems ("it doesn't work" is not a well defined problem) you get well defined answers rather than this merry-go-round of guessing that has defined every single one of your threads. It's surely not a coincedence that none of the recent ones have come to any sort of successful conclusion.

    It doesn't work for the same reason this doesn't work:
    Code:
    char* myString = malloc(sizeof(char*));
    strcpy(myString, "Hello, I'm a string in some really bad code");
    Last edited by adeyblue; 09-28-2011 at 02:02 PM.

  5. #5
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Benji Wiebe View Post
    I do have the code
    Code:
    LPINITCOMMONCONTROLSEX cmmnctrls=malloc(sizeof(cmmnctrls));
        cmmnctrls->dwSize=sizeof(cmmnctrls);
        cmmnctrls->dwICC=ICC_STANDARD_CLASSES | ICC_BAR_CLASSES;
        InitCommonControlsEx(cmmnctrls);
    at the start of the WinMain function.
    Just use InitCommonControls(); and be done with it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Status bar
    By Nephiroth in forum Windows Programming
    Replies: 1
    Last Post: 01-29-2006, 08:20 AM
  2. Status bar
    By caduardo21 in forum Windows Programming
    Replies: 1
    Last Post: 02-19-2005, 06:24 AM
  3. Window Status
    By Onkel BeBu in forum Windows Programming
    Replies: 3
    Last Post: 08-01-2003, 04:13 AM
  4. status bar
    By toby1909 in forum Windows Programming
    Replies: 3
    Last Post: 01-20-2002, 12:19 PM
  5. Status bar covering parent window....by the way, thanks Ward
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 10-02-2001, 08:16 PM

Tags for this Thread