📄 dd.c
字号:
ShowWindow(GetDlgItem(hWnd, duplex_MainKey01To08), SW_SHOW); // show main key ShowWindow(GetDlgItem(hWnd, duplex_MainKey01Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey02Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey03Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey04Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey05Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey06Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey07Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey08Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey09To16), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey09Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey10Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey11Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey12Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey13Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey14Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey15Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_MainKey16Edit), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey0), SW_HIDE); // hide assistant key ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit0), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey1), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit1), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey2), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit2), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey3), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit3), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey4), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit4), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey5), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit5), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey6), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit6), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey7), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit7), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey8), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit8), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey9), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit9), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_BackOff), SW_SHOW); SetWindowText(GetDlgItem(hWnd, duplex_NextOk), "下一步"); } else //if( sel == 1) // assistant keys { SendDlgItemMessage(hWnd, duplex_KeyDistinguishWordEdit, EM_LIMITTEXT, 2, 0); SetWindowText(GetDlgItem(hWnd, duplex_KeyDistinguishWord), "密钥组号:"); SetWindowText(GetDlgItem(hWnd, duplex_KeyDistinguishWordEdit), ""); ShowWindow(GetDlgItem(hWnd, duplex_MainKey01To08), SW_HIDE); // hide main key ShowWindow(GetDlgItem(hWnd, duplex_MainKey01Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey02Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey03Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey04Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey05Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey06Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey07Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey08Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey09To16), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey09Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey10Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey11Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey12Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey13Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey14Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey15Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_MainKey16Edit), SW_HIDE); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey0), SW_SHOW); // show assistant key ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit0), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey1), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit1), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey2), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit2), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey3), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit3), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey4), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit4), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey5), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit5), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey6), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit6), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey7), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit7), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey8), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit8), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKey9), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_AssistantKeyEdit9), SW_SHOW); ShowWindow(GetDlgItem(hWnd, duplex_BackOff), SW_HIDE); SetWindowText(GetDlgItem(hWnd, duplex_NextOk), "下一组/确定"); } //show the original parameter } break; case duplex_Return: //return to the jiazhuqi main interface PostMessage(hWnd,MSG_CLOSE,0,0); break; case duplex_BackOff: //return to the jiazhuqi previous interface //modify the text of static frame //restore temporary parameter //delete previous temporary parameter, this needn't do break; case duplex_NextOk: //check parameter //store parameter temporarily //modify the text of static frame //modify parameter and show( preare for next edit) break; default: break; } break; case MSG_CLOSE: DestroyAllControls (hWnd); DestroyMainWindow (hWnd); PostQuitMessage (hWnd); return 0; } return DefaultDialogProc (hWnd, message, wParam, lParam);}int MiniGUIMain (int argc, const char* argv[]){#ifdef _LITE_VERSION SetDesktopRect(0, 0, 240, 280);#endif duplex_DlgKeyEditor.controls = duplex_CtrlKeyEditor; DialogBoxIndirectParam (&duplex_DlgKeyEditor, HWND_DESKTOP, duplex_MainFuncProc, 0L); return 0;}#ifndef _LITE_VERSION#include <minigui/dti.c>#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -