PDA

View Full Version : Creating window without 'non-client' area


leojose
06-29-2005, 04:22 PM
Hi all,

I would like to create a window which only displays the client area. There should not be any toolbars or scroll bars. But it should work just like a normal window and accept the Window Process commands, at the same time it should look just like a single sheet of white paper.
Can somebody suggest me a way to go about this?

Added:
I am using Windows API programming in C,C++.

Regards,

nikkiH
06-29-2005, 04:27 PM
You've got this in a very general category.
What language are you using, what tool(s) are you using, is this a browser app, a windows forms app, a java swing app...?

Are you using the Windows API?
Is this for the web? PC CD application? etc.

shmoove
06-29-2005, 07:54 PM
I think SetWindowRgn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/pantdraw_2him.asp) can help you there (by setting a region that doesn't include the non-client area). I remember using it from VB to create wierd shaped forms.

shmoove