如何win32制作一个登录界面,我卡住了,不知道接下来代码该怎么写
代码卡住了,不知道接下来该怎么写,就是WM_COMMAND里面的内容,请大佬们帮帮忙,跪谢!!!程序代码:
#include<windows.h> #include<stdio.h> #include"resource.h" HINSTANCE hInstance=0; BOOL CALLBACK DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) { int buffer1=0 ; char* buffer2 = {0}; switch (msg) { case WM_INITDIALOG: return TRUE; case WM_CLOSE: if (MessageBoxA(hDlg, "are you sure to close?", "Close?", MB_YESNO | MB_ICONQUESTION) == IDYES) EndDialog(hDlg, 0); break; case WM_COMMAND: switch (LOWORD(wParam)) { case IDC_EDIT1: break; case IDC_EDIT2: break; } return TRUE; } return FALSE; } int main() { hInstance=GetModuleHandleA(NULL); DialogBoxA(hInstance, (char*)IDD_DIALOG3, NULL, DlgProc); return 0; }