Results 1 to 3 of 3

Thread: Does WindowLong change during runtime?

  1. #1

    Thread Starter
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339

    Does WindowLong change during runtime?

    The subject says it all.

    Assume I am not ever calling SetWindowLong()

    So I just leave the window and its properties alone.
    Will the Long ever change???

    See, I know before you can update a window's style, you have to get the current style through GetWindowLong, add or remove style's from it, then apply the new style through SetWindowLong.

    I want to GetWindowLong once, and then set it whenever needed, could be once, could be a thousand times...

    But, my thought is maybe the WindowLong is internally being changed now and then, so I may cause some unstability by doing what I wish to do.


    See, I need to change a window's settings from a standard overlapped window, to a blank empty window (no settings cept visible).
    Generally a window which goes from Full-Screen to Windowed mode and sets its style accordingly.

    FullScreen Mode - WS_VISIBLE should be only style.
    Windowed Mode - Anything really. At least an overlapped window.
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

  2. #2
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286
    The style doesn't change unless you directly/indirectly change it.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    ShowWindow can change a few styles, like WS_VISIBLE, WS_MAXIMIZED and WS_MINIMIZED. ShowWindow is automatically called by the minimize, maximize and restore actions of the window frame (system menu and buttons at the top right). This is, to my knowledge, the only way the window style can change without explicit interference by the programmer.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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