Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dialog box suddenly stopped showing : Visual C++ .net

Status
Not open for further replies.

jennyy

Programmer
Jan 9, 2003
8
US
Help! Using Visual C++ .net: My dialog box was working just fine and I swear I didn't touch any of its portion of the code (uh-huh sure), and all of a sudden it stopped working (gasp)! Below are the relevant portions of the code:

The function ExperimentOptions is being called but it never gets the WM_INITDIALOG message, and the window is never shown. I have an about box that still works that is left over from the WinMain "hello world" code. But why has my ID_EXPERIMENT_OPTIONS dialogue box stopped displaying??? (In addition as a side note, the single character underlinings in the menus of my app dont show anymore until I press ALT)!!!!!!! need help!!!!

switch (message)
{
case WM_COMMAND:
wmId = LOWORD(wParam);
wmEvent = HIWORD(wParam);
// Parse the menu selections:
switch (wmId)
{
case ID_EXPERIMENT_OPTIONS:
DialogBox(hInst, (LPCTSTR)IDD_EXPERIMENT_OPTIONS,
hWnd, (DLGPROC)ExperimentOptions);
break;
//code removed here

LRESULT CALLBACK ExperimentOptions(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{

switch (message)
{
case WM_INITDIALOG:
InitializeOptions(hDlg);
LoadAllOptions(hDlg, this_total_iterations,
this_lp);
return TRUE;
case WM_COMMAND:

//code removed here
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top