I need some help or some explaining on the option of when the user chooses the on top or not on top, which ever one is selected then a tick appears next to it, maybe my code needs a slight add or simple modification. My code currently works and I have no errors, just looking to working out there check option, here is the code at the top of the form:
The On Top Code:Code:'window thingy Private Const HWND_TOPMOST = -1 Private Const HWND_NOTOPMOST = -2 Private Const SWP_NOSIZE = &H1 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOACTIVATE = &H10 Private Const SWP_SHOWWINDOW = &H40 'declare API Private Declare Sub SetWindowPos Lib "user32" (ByVal hWnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal Y As Long, _ ByVal cX As Long, ByVal cY As Long, ByVal wFlags As Long)
The Not On Top Code:Code:SetWindowPos Me.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or _ SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE
Is there something in my code I can change so when the user chooses not on top the option shows a tick next to it?Code:SetWindowPos Me.hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or _ SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE
In the menu editor I have the On Top check box ticked.
Thank you.




Reply With Quote