[gameprogrammer] Re: How to create a dialog box without a regular window?

  • From: "Roman Hwang" <hwang.roman@xxxxxxxxx>
  • To: gameprogrammer@xxxxxxxxxxxxx
  • Date: Mon, 10 Mar 2008 10:08:27 +0200

Hello,
If you have your dialog box as resource, you can just call something like
this:

DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOGBOX), NULL, About);

And you don't need a parent window.

On 3/10/08, Kevin Jenkins <gameprogrammer@xxxxxxxxxx> wrote:
>
> I'm writing an app where I made the window as a dialog resource. I
> just want that window in my app.
>
> Right now I have to call CreateWindowA, which creates this dummy
> window, then call CreateDialog with that window's handle as the
> parent. So I have this big dumb window in that background that does
> nothing.
>
> How do I just create the dialog?
>
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>
>
>


-- 
Best Regards.
In pivo veritas.
Roman Hwang.

Other related posts: