Thread: Ws_visible?

  1. #1
    Registered User
    Join Date
    May 2016
    Posts
    3

    Ws_visible?

    What is the difference between using CreateWindow() with the WS_VISIBLE flag set, versus using CreateWindow() without that flag and then ShowWindow()?

    Also is there a way to change the red text color? I find it hard to read.

    Note: I had the flag in all caps in the thread title, but it changed it to sentence case for some reason.

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,728
    No difference, but there are instances where you wouldn't want to show the window the moment it's created.

    Also is there a way to change the red text color? I find it hard to read.
    You need HPEN for that, if I remember correctly. Here's MSDN's link on pens and brushes.:
    Creating Colored Pens and Brushes (Windows)
    Devoted my life to programming...

  3. #3
    Registered User taazz's Avatar
    Join Date
    May 2016
    Posts
    50
    There is no difference. You use the first one to immediately show a window and the second one to first populate the window with all the required child controls avoiding flickering or showing controls in "waves".

    As for the Red text color are you referring to the forums colors or something else?

  4. #4
    Registered User
    Join Date
    May 2016
    Posts
    3
    Quote Originally Posted by taazz View Post
    As for the Red text color are you referring to the forums colors or something else?
    on this forum

Popular pages Recent additions subscribe to a feed

Tags for this Thread