📄 win_syssupersetkoulin.c
字号:
/*win_sysSupersetKouLin.c*//*** COMPANY NAME: 国星** FILE NAME: win_sysSupersetKouLin.c** FILE PATH: Interface/win_sysSupersetKouLin.c** WINDOWS NAME: 口令识别** WINDOWS PATH: 系统 / 高级设置 / 口令识别** OTHER INFOR; 无** CREATER NAME: LiWencheng, JiangYuanqing** MENDER NAME: LiWencheng** CHANGE TIME: 11/4/2007 */#include "sysSrcInfo.h"static HWND mulEditKouLin;static BITMAP bmpsysSupersetKouLin;//缓存中间状态栏图片static HWND hWndMainsysSupersetKouLin;static const char *bmp_name_sysSupersetKouLin[] = {"./Pictures/b_windowsbackground_1.PNG", //第一张来做主界面"./Pictures/OK.PNG", "./Pictures/return.PNG" };/* 定义皮肤元素数组 */static skin_item_t skinItemssysSupersetKouLin [] ={ {SIID_OK, SI_TYPE_CHKBUTTON | SI_TEST_SHAPE_RECT | SI_STATUS_VISIBLE, BUTTONLEFT_X, BUTTON_Y, {}, 1, "" }, {SIID_RETURN, SI_TYPE_CHKBUTTON | SI_TEST_SHAPE_RECT | SI_STATUS_VISIBLE, BUTTONRIGHT_X, BUTTON_Y, {}, 2, "" }, };/* 定义皮肤 */static skin_head_t skinsysSupersetKouLin ={ "skinsysSupersetKouLin", //const BITMAP* bmps; SKIN_STYLE_TOOLTIP, NULL, NULL, 0, 2, skinItemssysSupersetKouLin, FALSE};static void CloseWindow_sysSupersetKouLin (){ LoadSkinBmps (&skinsysSupersetKouLin, FALSE, bmp_name_sysSupersetKouLin, (sizeof (bmp_name_sysSupersetKouLin))/sizeof (char *) ); ShowWindow (hWndMainsysSupersetKouLin, SW_HIDE); UnloadBitmap ( &bmpsysSupersetKouLin );}static int main_event_cb_sysSupersetKouLin (HWND hwnd, skin_item_t* item, int event, void* data){ char buff[100]; if (event == SIE_BUTTON_CLICKED) { switch (item->id) { case SIID_OK: GetWindowText (mulEditKouLin, buff, 100); SetKouLin (buff); break; case SIID_RETURN: win_SysSuperSet (hWndMain ); CloseWindow_sysSupersetKouLin (); break; } } return 1;}static int msg_event_cb_sysSupersetKouLin (HWND hwnd, int message, WPARAM wparam, LPARAM lparam, int* result){ HDC hdc; char string[100]; switch (message) { case MSG_CREATE: LoadBitmap (HDC_SCREEN, &bmpsysSupersetKouLin, "Pictures/a_sysSysSuperset_2.PNG"); mulEditKouLin = CreateWindow (CTRL_MLEDIT, "", WS_VISIBLE | WS_BORDER | WS_VSCROLL | ES_AUTOWRAP, 485, 2, 45, 155, 50, hwnd, 0); SendMessage (mulEditKouLin, EM_SETLINEHEIGHT, 10, 0);//行高 //SetNotificationCallback (hwndmledit_infoCreat, mledit_notif_proc); SendMessage (mulEditKouLin, EM_LIMITTEXT, 99, 0L);//set length of input text sprintf(string ,"%s",GetKouLin ()); SetWindowText (mulEditKouLin, string); case MSG_PAINT : hdc=BeginPaint (hwnd); SetBkMode (hdc, BM_TRANSPARENT); FillBoxWithBitmap (hdc, ZTL_PIC_X, ZTL_PIC_Y, ZTL_PIC_W, ZTL_PIC_H, &bmpsysSupersetKouLin); TextOut (hdc, WZ_ZTL_X4, WZ_ZTL_Y, "口令识别" ); TextOut (hdc, RJ_X, 25, "口令识别" ); EndPaint (hwnd, hdc); break; } return 1;}void win_sysSupersetKouLin (HWND hwndmain ){ MSG msg; LoadSkinBmps (&skinsysSupersetKouLin, TRUE, bmp_name_sysSupersetKouLin, (sizeof (bmp_name_sysSupersetKouLin))/sizeof (char *) ); if (skinsysSupersetKouLin.bmps == NULL) { printf ("Could not load skin bitmaps!\n"); } if (!skin_init (&skinsysSupersetKouLin, main_event_cb_sysSupersetKouLin, msg_event_cb_sysSupersetKouLin) ){ /* 初始化皮肤 */ printf ("skin init fail!\n\n"); } else{ hWndMainsysSupersetKouLin = create_skin_control (&skinsysSupersetKouLin, hwndmain, 153, DEF_X_, DEF_Y_, DEF_WIDTH, DEF_HEIGHT); currShowWindowHwnd = hWndMainsysSupersetKouLin; }}#ifndef _LITE_VERSION#include <minigui/dti.c>#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -