#include #include "Resource.h" //--------------------------------------------------------------------------- LRESULT CALLBACK DlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); //--------------------------------------------------------------------------- BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD reason, LPVOID reservedstuff) { switch(reason) { case DLL_PROCESS_ATTACH: DialogBox(hInstance, MAKEINTRESOURCE(IDD_DLGFIRST), NULL, reinterpret_cast(DlgProc)); } return TRUE; } //--------------------------------------------------------------------------- LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam) { switch(Msg) { case WM_INITDIALOG: return TRUE; case WM_COMMAND: switch(wParam) { case IDOK: EndDialog(hWndDlg, 0); return TRUE; } break; } return FALSE; } //---------------------------------------------------------------------------