Page 1 of 1

SDK v mywechsel.ini [Exe] entry

Posted: 13.10.2010 08:16:41
by CircleDock
I'm having a problem getting my plug-in's window to remain visible when the current Desktop has switched and the following is a summary of my findings:

Using the API
DEX_COPYWINDOW - if I use this after the switch has taken place (which I believe I must), my window is not copied.

DEX_MOVEWINDOW - if I use this before the switch has taken place (which I believe is correct), the switch does not happen

Using "mywechsel.ini" - [Exe] Section
myexe.exe=sticky - this works!

myexe.exe=move - this works but only for the very first switch

myexe.exe=copy - this does not work




It seems that the only way I can get my plug-in's Window to remain visible after a switch is to use the "=sticky" option but I would much prefer to handle this via the API as there may well be times I don't want my Window to be copied.

Help!!




Mark

Re: SDK v mywechsel.ini [Exe] entry

Posted: 15.10.2010 19:02:16
by Patrick
The API equivalent of mywechsel.ini is DEX_SETSWITCHINGEXCEPTION, which works on a per window basis. Call SendNotifyMessage(DexpotMainMenu, DEX_SETSWITCHINGEXCEPTION, YourWindowHandle, DEX_EXCEPTION_STICKY) once after your window is created.