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.
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You". -- Linus Torvalds