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
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