I have a loop where WaitWindowEvent() never fires #PB_Event_MaximizeWindow or #PB_Event_RestoreWindow.
#PB_Event_CloseWindow, #PB_Event_Gadget are working fine. As does #WM_SIZE and #WM_EXITSIZEMOVE.
Question - what are the Win API equivalents of the #PB_Event_MaximizeWindow and #PB_Event_RestoreWindow events?
[Resolved] #PB_Event_MaximizeWindow
-
IdeasVacuum
- Always Here

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
[Resolved] #PB_Event_MaximizeWindow
Last edited by IdeasVacuum on Fri Nov 30, 2012 12:13 am, edited 1 time in total.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: #PB_Event_MaximizeWindow
works fine here:IdeasVacuum wrote:I have a loop where WaitWindowEvent() never fires #PB_Event_MaximizeWindow or #PB_Event_RestoreWindow.
Code: Select all
OpenWindow(0, 0, 0, 230, 90, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_MaximizeGadget)
Repeat
Select WaitWindowEvent()
Case #PB_Event_MaximizeWindow
Debug "#PB_Event_MaximizeWindow"
Case #PB_Event_RestoreWindow
Debug "#PB_Event_RestoreWindow"
Case #PB_Event_CloseWindow
Break
EndSelect
ForEverHygge
-
IdeasVacuum
- Always Here

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
[Resolved] Re: #PB_Event_MaximizeWindow
yup, I did exactly that to check my code before posting!
I have discovered the issue was caused by the CallBack of a separate (inactive whilst hidden) Window. Now, that's not been an issue before but at least I know and it's easy to fix.
I have discovered the issue was caused by the CallBack of a separate (inactive whilst hidden) Window. Now, that's not been an issue before but at least I know and it's easy to fix.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
