Announcement

Collapse
No announcement yet.

Registry ???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Registry ???

    I start a program by changing %HKEY_CURRENT_USER\Control Panel\Desktop\DragFullWindows from "1" to "0" to avoid automatic resizing of windows when dragging. The problem is that it has no effect until windows looks down in the registry. How do i force windows to update its desktop - settings?

    Regards
    Peter

  • #2
    I'd say you'd have to force a reboot.

    The DragFullWindows attribute seems to be a WMI "readonly" attribute (at least thats how MSDN reads to me), so it must be set at boot-up time.


    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Nop,
      this is the wrong way. You'll need to do it like in the following example:
      Code:
      SUB SETWINSTATE ALIAS "SetWinMoveState" (BYVAL NewState AS LONG) EXPORT
       NewState = ABS(NewState)
       SystemParametersInfo %SPI_SETDRAGFULLWINDOWS, NewState, 0, %SPIF_SENDWININICHANGE
      END SUB
      Hope this will help.

      PS: You can change the state as often as you want without rebooting the system.

      Peter

      ------------------




      [This message has been edited by Peter Patzwaldt (edited June 14, 2000).]

      Comment


      • #4
        Peter --

        Thanks! Did not know that one!

        Regards
        Peter

        ------------------

        Comment


        • #5
          Excellent tip, Peter! Thanks!

          ------------------
          Lance
          PowerBASIC Support
          mailto:[email protected][email protected]</A>
          Lance
          mailto:[email protected]

          Comment

          Working...
          X