C
Crouchie1998
Hello All
How do I get a Form on Top on the System Menu, please?
Of course I am using GetSystemMenu & AppendMenu - no problem but this part is:
Because I cannot put a checkmark on the system menu I want to toggle text.
Example:
'On Top' shown if for isn't topmost
'Not On Top' if the form is topmost
In WndProc I can handle the m.wParam.ToInt32 for the new appended menu item,
but how to change the text on click (toggle text)?
SOME CODE LEFT OUT
AppendMenu(MenuHandleHere, MF_STRING, 1001, "Not On Top")
in WndProc:
Select Case m.WParam.ToInt32
Case 1001
[GET MENU TEXT HERE] (On Top/Not On Top)
End Select
Any ideas would be appreciated
How do I get a Form on Top on the System Menu, please?
Of course I am using GetSystemMenu & AppendMenu - no problem but this part is:
Because I cannot put a checkmark on the system menu I want to toggle text.
Example:
'On Top' shown if for isn't topmost
'Not On Top' if the form is topmost
In WndProc I can handle the m.wParam.ToInt32 for the new appended menu item,
but how to change the text on click (toggle text)?
SOME CODE LEFT OUT
AppendMenu(MenuHandleHere, MF_STRING, 1001, "Not On Top")
in WndProc:
Select Case m.WParam.ToInt32
Case 1001
[GET MENU TEXT HERE] (On Top/Not On Top)
End Select
Any ideas would be appreciated