Calling DialogBox() in C#

K

Kodjo Stiles

Hi All,

I have created a Windows Form that I wish to display as a Dialog Box (i.e.
calling the Windows API function DialogBox).

I have two questions:
- How do I get the WndProc of that form
- How do I get the Dialog Template name or identifier of that form?

Thanks,
Kodjo



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4798 (20100122) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
K

Kodjo Stiles

Hi Patrice,

Patrice said:
What is the goal that couldn't be achieved without this API call ? Is this
to get a modal window ? If not which feature ?

I am trying to write a replacement GINA and need to show my dialog from
within the Winlogon session; this is done by calling a variant of
DialogBox(...)
If you check the Form class you'll see that the WndProc is exposed on the
form but I don't know how you could get the template (and a .NET form is
created by code so I'm not even sure you really have a template).

I actually have subclassed NativeWindow and exposed a member that provides
the WndProc. I wasn't sure this was the right approach.
My real issue now is this the template identifier...
--
Patrice




__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4798 (20100122) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4798 (20100122) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top