In the realise callback for my base window I realise a number of other
windows, standard Phab stuff. I do not want these windows to be visible
initially so their window state is set to Ph_WM_STATE_ISHIDDEN. That works
The challenge is how to subsequently show the window, assume its called
RequiredWindow. PtWindowToFront(ABW_RequiredWindow) does not do it.
I have tried PtForwardWindowEvent() but my possibly incorrect efforts have
been in vain. Needless to say I have set all managed and notify flags for
“RequiredWindow”. I can solve the problem by realising the window then
sending it to the back but it flashes on the screen for an instance so its
not the best approach.
My effort (i do not fully understand what I am doing here !!) with
memset(&event, 0, sizeof(event));
event.event_f - Ph_WM_RESTORE;
event.event_state = Ph_WM_EVSTATE_PERFORM; // dont know about
this line ?
event.red = PtWidgetRid(ABW_RequiredWindow); // ? compiles
I have tried following this with WindowToFront but no luck. Any help would