Status Window

This is a discussion on Status Window within the Windows Programming forums, part of the Platform Specific Boards category; Originally Posted by Benji Wiebe Why not?! Originally Posted by Niara, of your initial post Also wait a moment: what ...

  1. #16
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    611
    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.

  2. #17
    A source of questions... Benji Wiebe's Avatar
    Join Date
    Mar 2011
    Location
    Durham, Kansas
    Posts
    69
    WS_VISIBLE has been added. My status window is not appearing. InitCommonControlsEx is reporting success.
    Ever notice how fast Windows runs?
    Neither did I.
    Which is why I switched to Linux.

  3. #18
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    So, we can talk about this for the next 3 months or you can post your complete code and let us help you out...

  4. #19
    A source of questions... Benji Wiebe's Avatar
    Join Date
    Mar 2011
    Location
    Durham, Kansas
    Posts
    69
    Quote Originally Posted by CommonTater View Post
    So, we can talk about this for the next 3 months or you can post your complete code and let us help you out...
    Code length: 558 lines.
    Ever notice how fast Windows runs?
    Neither did I.
    Which is why I switched to Linux.

  5. #20
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,623
    Quote Originally Posted by Benji Wiebe View Post
    Code length: 558 lines.
    If you don't want to flood the thread with the code, attach it with a file and anyone who's interested in helping you will see it.
    Devoted my life to programming...

  6. #21
    A source of questions... Benji Wiebe's Avatar
    Join Date
    Mar 2011
    Location
    Durham, Kansas
    Posts
    69
    Well, I am going to try to write a smaller program that only displays a window with a status window. If it works, I will have learned something, if it does not work, I will post the code.
    Ever notice how fast Windows runs?
    Neither did I.
    Which is why I switched to Linux.

  7. #22
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Benji Wiebe View Post
    Code length: 558 lines.
    Ok, then post your window factory and any relevent parts of your message tosser.

    At least give us *something* tangeable to advise you on...

  8. #23
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    Quote Originally Posted by CommonTater View Post
    It stops ONE message... the WM_COMMAND message when you click on it... And for a display only control you don't really want it to be clickable, anyway.
    A control with a NULL or 0 ID still generates msgs, even WM_COMMAND (ie not setting the ID does not stop ANY msgs).
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  9. #24
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by novacain View Post
    A control with a NULL or 0 ID still generates msgs, even WM_COMMAND (ie not setting the ID does not stop ANY msgs).
    You're right... that was my mistake... basically it just sets the value to 0 so it becomes "unhandled"...

  10. #25
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    Quote Originally Posted by CommonTater View Post
    You're right... that was my mistake... basically it just sets the value to 0 so it becomes "unhandled"...
    Just to be 100% clear, StatusBars do not generate mouse click msgs via WM_COMMAND, so setting the ID to NULL achieves nothing and may cause the control (or other child controls) to not function.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  11. #26
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by novacain View Post
    Just to be 100% clear, StatusBars do not generate mouse click msgs via WM_COMMAND, so setting the ID to NULL achieves nothing and may cause the control (or other child controls) to not function.
    I've used lots of statusbars in my day and never had that problem...
    But I do suppose strange things can happen.

  12. #27
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    So before you accuse me of 'trying to manufacture controversy where there is none' again, do me a favor and make sure you have tested your theories are correct.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  13. #28
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by novacain View Post
    So before you accuse me of 'trying to manufacture controversy where there is none' again, do me a favor and make sure you have tested your theories are correct.
    Like I said... I've written quite a bit of code. (Just 'cause you can't see it, you should not assume there isn't any)
    I've never had a problem setting the hMenu item to NULL.

  14. #29
    A source of questions... Benji Wiebe's Avatar
    Join Date
    Mar 2011
    Location
    Durham, Kansas
    Posts
    69
    This works for me now:
    Code:
    CreateWindow(STATUSCLASSNAME, "Hello!", WS_CHILD | WS_VISIBLE,
                        CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, hwndDlg,
                        NULL, hInst, NULL);
    Ever notice how fast Windows runs?
    Neither did I.
    Which is why I switched to Linux.

Page 2 of 2 FirstFirst 12
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, 07:20 AM
  2. Status bar
    By caduardo21 in forum Windows Programming
    Replies: 1
    Last Post: 02-19-2005, 05: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, 11:19 AM
  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


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