Help! Using Visual C++ .net: My dialog box (IDD_EXPERIMENT_OPTIONS) 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)! I've even restored saved copied of correct old code, and those aren't working anymore either. 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!!!!
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
int wmId, wmEvent;
PAINTSTRUCT ps;
HDC hdc;
TCHAR szHello[MAX_LOADSTRING];
LoadString(hInst, IDS_HELLO, szHello, MAX_LOADSTRING);
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!!!!
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
int wmId, wmEvent;
PAINTSTRUCT ps;
HDC hdc;
TCHAR szHello[MAX_LOADSTRING];
LoadString(hInst, IDS_HELLO, szHello, MAX_LOADSTRING);
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