Help In Selecting A Popup Dialog With No User Input  
Author Message
gabit7





PostPosted: Visual C++ Language, Help In Selecting A Popup Dialog With No User Input Top

I need help in selecting the proper popup dialog box to my application. I want to overlay a small dialog box over my main dialog box. This small dialog box will display a (long)working_address variable in hex format 0x123456 that will be updated many times before the box closes. This small dialog box will have no user input or buttons. I need this because the operation that's being performed takes about 30 minutes to complete and I need someway to show that the program is still working as expected.

My experience in dialog boxs is only working with one at a time and I'm unable figure this out. If anyone can please help me out that would be wonderful.



Visual C++7  
 
 
Brian Kramer





PostPosted: Visual C++ Language, Help In Selecting A Popup Dialog With No User Input Top

You want to create a modeless dialog box.  If you're using MFC, use CDialog::Create instead of CDialog::DoModal.  If you're using straight Win32, use CreateDialog instead of DialogBox.

(992 down, 8 to go)


 
 
gabit7





PostPosted: Visual C++ Language, Help In Selecting A Popup Dialog With No User Input Top

For this modeless dialog box, do I use the ResourceView and Insert Dialog in the same way a regular dialog box would be created I ask because I did not see any modeless option in the properties after I made the dialog box.
 
 
Nishant Sivakumar





PostPosted: Visual C++ Language, Help In Selecting A Popup Dialog With No User Input Top

For this modeless dialog box, do I use the ResourceView and Insert Dialog in the same way a regular dialog box would be created I ask because I did not see any modeless option in the properties after I made the dialog box.

See http://www.codeproject.com/dialog/gettingmodeless.asp



 
 
Brian Kramer





PostPosted: Visual C++ Language, Help In Selecting A Popup Dialog With No User Input Top

Yes, the process of designing the dialog is exactly the same. The only difference is that CreateDialog returns immediately with a window handle.
 
 
gabit7





PostPosted: Visual C++ Language, Help In Selecting A Popup Dialog With No User Input Top

I created a simple dialog box with one Edit Box and no Buttons and made it its own class Working_Address and the variable (long) m_working_address.

The modeless dialog box appears but the value of m_working_address always reads 0 even while in dedug I see the value is updated correctly. I thought using RedrawWindow() or UpdateWindow() would refresh the dialog box with the new value but it is not. What command should I be using

Second, how can I get the initial value of 0 and further values to display in hex format 0x000000 I guess this may be a problem since in other parts of the code someone used a string to display values in hex .

As always thank you for any help that is provided.


 
 
Brian Kramer





PostPosted: Visual C++ Language, Help In Selecting A Popup Dialog With No User Input Top

Whenever the value changes, you have to update the textbox with SetWindowText.