No title bar window

Hi how do I create a dialog box with no title bar
In resource
That looks something like this

http://i.imgur.com/HDrd0.png
That would depend on what library you're using to create your GUI. wxWidgets? Qt? Native Windows stuff?

Check the documentation for the window class of whatever you're using.
Using either Some sort of graphic library or WinAPI calls before you show your window
I want to do it all with winapi
I would imagine Google would find you an answer in seconds.
Try combining the WS_POPUPWINDOW and WS_THICKFRAME styles. This is how I create such a window with CreateWindowEX:

1
2
3
4
5
6
7
8
9
10
11
12
13
	_window = CreateWindowEx(
		0,
		ClassName,
		WindowName,
		(WS_POPUPWINDOW | WS_THICKFRAME | WS_VISIBLE | WS_CLIPCHILDREN),
		CW_USEDEFAULT,
		CW_USEDEFAULT,
		500,
		500,
		NULL,
		NULL,
		wc.hInstance,
		this);
Last edited on
thanks for that.

now im looking at trying to make the window look like this
http://beingpc.com/wp-content/uploads/2010/03/4-error.png

i have set the background white with
wc.hbrBackground = CreateSolidBrush(0xFFFFFF);

whats the best way to set the bottom bar an top part? with different colour shade in bottom one?
Not sure exactly, but no doubt it is some clever use of common controls like buttons, static, and syslink.

You can try Spy++ to see what controls and window styles are used.
Last edited on
i have tried Spy++ but cant seem to find much.
im not sure if that bottom part is a image or if there is a simple way to do it?
theres not much out there in this i have been searching for awhile

Does anyone have ideas?
Perhaps you'd be better off asking on a forum more specifically focused on Windows programming?
That looks very much like owner draw/custom control

Take a look at this:

http://msdn.microsoft.com/en-us/library/windows/desktop/bb775501%28v=vs.85%29.aspx
thanks for that
seems to be what im looking for just need to work it all out

quick question i been looking at some examples of
owner drawn buttons an custom buttons
what is difrent between them they both look the same?

hard to find Native winapi examples on this
anyone have any examples of what im trying to do?
im sure people have done it before
what is difrent between them they both look the same?
It looks like Microsoft doesn't make a difference

anyone have any examples of what im trying to do?
Code Project is often a good source for this. Read this:

http://www.codeproject.com/Articles/5032/Creating-and-Using-custom-controls-in-VC
Seems to be MFC
Anyone?
Well, yes it is MFC, but it's very close to API...

On the same site there is a good explanation with the API:

http://www.codeproject.com/Articles/559385/Custom-Controls-in-Win-API-The-Basics
Topic archived. No new replies allowed.