Alright I am trying to put a dilog box in my program. At first, it wasn't accepting my resource file. Now, I have everything working right, and the dialog box ins't appearing.

Here is all my dialog box code:

Resourse (dialogs.rc)
Code:
#include "hdandn.hpp"

IDD_DLGJOIN DIALOG 260, 200, 188, 95
STYLE DS_MODALFRAME | WS_CHILD | WS_CAPTION | WS_TOPMOST | WS_SETFOREGROUND | WS_VISIBLE
CAPTION "Join a Game"
FONT 8, "Courier New"
BEGIN
    DEFPUSHBUTTON   "OK", ID_DLGOK, 130, 10, 50, 14
END
DialogBox Call
Code:
DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DLGJOIN), dlghwnd, reinterpret_cast<DLGPROC>(DlgProc));
DlgProc
Code:
LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
{
	switch(Msg)
	{
    case WM_CREATE:
         break;
	case WM_INITDIALOG:
		return TRUE;
    case WM_COMMAND:
		switch(wParam)
		{
		    case IDOK:
			    EndDialog(hWndDlg, 0);
			    return TRUE;
		}
		break;
	}

	return FALSE;
}
Misc:

Predifinition (forget word):
Code:
LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam); // Dialog Box
Header definitions:
Code:
#define IDD_DLGJOIN      100
#define ID_DLGOK         101
That is all the code I have that pretains to the dialog boxes. I don't see anything wrong, yet when I click the button to get the DialogBox to appear, nothing happens. I know that the button works, I have tested it with regular message boxes.

I am using Dev-C++ 4.9.9.2

Thanks in advance for all help and suggestions .