hide a window from appearing in taskbar

Biju G C bijumaillist@yahoo.com
Sun Feb 1 03:41:00 GMT 2004


Harold,

I found a way to hide a window from appearing in taskbar when it is visible.

The technique I used was showing the window as a dialog with parent as MS-Windows desktop 

  desktophwnd=GetDesktopWindow();
  int ret = DialogBox(GetModuleHandle(NULL), 
             MAKEINTRESOURCE(IDD_ABOUT), desktophwnd, AboutDlgProc);

Where "about" window wont appear in taskbar.
Also it wont be a modal window.

To make it more convincing I hide the calling window.

I am attaching the example
While running, do "Tools\About" from the menu


So will it be possible to use this with "XWin.exe -nodecoration"

cheers
Biju


--------- my makefile ------

myapp.exe : myapp.c myapp.res resource.h
	gcc -mwindows myapp.c  myapp.res -o $@

myapp.res : myapp.rc resource.h
	windres $< -O coff -o $@

-------------------------------


	
	
		
___________________________________________________________
BT Yahoo! Broadband - Free modem offer, sign up online today and save £80 http://btyahoo.yahoo.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myapp.c
Type: application/octet-stream
Size: 4354 bytes
Desc: myapp.c
URL: <http://cygwin.com/pipermail/cygwin-xfree/attachments/20040201/6f804d36/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myapp.rc
Type: application/octet-stream
Size: 790 bytes
Desc: myapp.rc
URL: <http://cygwin.com/pipermail/cygwin-xfree/attachments/20040201/6f804d36/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resource.h
Type: application/octet-stream
Size: 188 bytes
Desc: resource.h
URL: <http://cygwin.com/pipermail/cygwin-xfree/attachments/20040201/6f804d36/attachment-0002.obj>


More information about the Cygwin-xfree mailing list