PDA

Click to See Complete Forum and Search --> : Dialog Resource's


Wak
Mar 8th, 2001, 02:27 AM
Anyone,
I got the idea from Parksie, about resource's, and I wanted to see if I could make a dialog resource, instead of using CreateWindow. Anyway, it works fine, and I can receive messages, and the controls all work. But there's one problem. The actual window itself isn't working. I think that I just have to pass a flag somewhere, to make it show, but I could be wrong. What do I have to do?? I'm stuck.

The file attached, is the code, and not the exe.

parksie
Mar 8th, 2001, 03:26 PM
At the end of your DialogProc, you need to return FALSE; to pass the message on to the default handler. Also, you don't need GetDesktopWindow -- just use NULL.

If you see my example, that uses ShowWindow to make sure that it's displayed.

parksie
Mar 9th, 2001, 11:57 AM
Also http://www.parksie.net/RawDlg.zip :)

Hopefully with both of those that'll cover the newbies ;)