Hello,

I have downloaded the famous KBBar Microsoft sample to create a custom tool bar.

I want to make the first button as the login button and pop up a dialog box when the user clicks it.

I created the Dialog class but can't seem to call the DoModal() method. It doesn't work through the command() method. If I put the call in create(), to test, it does pop up so I know that there isn't any problem with my class creation.

Can someone help me to understand how to do this. I am new to C++ so any detailed help will be appreciated.

Thank you,
Kaz