[wx-dev] wxMac Show/HIde application

Stefan Csomor csomor at advancedconcepts.ch
Fri Feb 22 01:34:10 PST 2008


Hi Robin

> Do we have a way, or is it possible to add a way to programatically
> Show/Hide an application the same way the system would if using the
> Show/Hide items on the dock icon menu?

I'd try setting up a HICommand event along the lines

wxMacCarbonEvent event( kEventClassCommand , kEventCommandProcess );
HICommand command;
memset( &command, 0 , sizeof(command) );
command.commandID = kHICommandHide ;
event.SetParameter<HICommand>(kEventParamDirectObject, command );
SendEventToApplication( event );
 
HTH

Stefan







More information about the wx-dev mailing list