Hi.
How do you minimize a window?
I have the following code.
int PtWindowMinimize(PtWidget_t *widget)
{
PhWindowEvent_t we;
if (!widget||!PtWidgetMenberClass(widget, PtWindow)) {
return -1;
}
memset(&we, 0, sizeof(we));
we.event_f = Ph_WM_HIDE;
we.event_state = Ph_WM_EVSTATE_HIDE;
return PtFowardWindowEvent(&we);
}
But this doesn’t work. What did I do wrong?
TIA
Augie
Hello Augie,
The following location has an example on how to do this very thing including some very good explenation.
http://qdn.qnx.com/support/docs/photon20/prog_guide/window_mgmt.html
Regards,
Dave B.
Augie Henriques <augiehenriques@hotmail.com> wrote:
Hi.
How do you minimize a window?
I have the following code.
int PtWindowMinimize(PtWidget_t *widget)
{
PhWindowEvent_t we;
if (!widget||!PtWidgetMenberClass(widget, PtWindow)) {
return -1;
}
memset(&we, 0, sizeof(we));
we.event_f = Ph_WM_HIDE;
we.event_state = Ph_WM_EVSTATE_HIDE;
return PtFowardWindowEvent(&we);
}
But this doesn’t work. What did I do wrong?
TIA
Augie
Thanks for that link Dave.
Augie
“Applications Mail Group” <apps@qnx.com> wrote in message
news:9fls4h$gv2$1@nntp.qnx.com…
Hello Augie,
The following location has an example on how to do this very thing
including some very good explenation.
http://qdn.qnx.com/support/docs/photon20/prog_guide/window_mgmt.html
Regards,
Dave B.
Augie Henriques <> augiehenriques@hotmail.com> > wrote:
Hi.
How do you minimize a window?
I have the following code.
int PtWindowMinimize(PtWidget_t *widget)
{
PhWindowEvent_t we;
if (!widget||!PtWidgetMenberClass(widget, PtWindow)) {
return -1;
}
memset(&we, 0, sizeof(we));
we.event_f = Ph_WM_HIDE;
we.event_state = Ph_WM_EVSTATE_HIDE;
return PtFowardWindowEvent(&we);
}
But this doesn’t work. What did I do wrong?
TIA
Augie