📄 qw2.cpp
字号:
WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL |WS_BORDER | ES_LEFT | ES_MULTILINE | ES_AUTOHSCROLL,
tm.tmAveCharWidth*82, tm.tmHeight * 9,
tm.tmAveCharWidth * 25 +
GetSystemMetrics (SM_CXVSCROLL),
tm.tmHeight * 3,
hwnd, (HMENU) 14,
(HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL) ;
hwndLabel[14] = CreateWindow ("static", "职务",
WS_CHILD | WS_VISIBLE | SS_CENTER,
tm.tmAveCharWidth*72, tm.tmHeight * 13,
tm.tmAveCharWidth * 10 ,
tm.tmHeight * 1,
hwnd, (HMENU) 54, hInstance, NULL) ;
hwndedit[14] = CreateWindow ("edit", NULL,
WS_CHILD | WS_VISIBLE |WS_BORDER | ES_LEFT| ES_AUTOHSCROLL,
tm.tmAveCharWidth*82, tm.tmHeight * 13,
tm.tmAveCharWidth * 25 +
GetSystemMetrics (SM_CXVSCROLL),
tm.tmHeight * 1,
hwnd, (HMENU) 15,
(HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL) ;
hwndLabel[15] = CreateWindow ("static", "性别",
WS_CHILD | WS_VISIBLE | SS_CENTER,
tm.tmAveCharWidth*72, tm.tmHeight * 15,
tm.tmAveCharWidth * 5 ,
tm.tmHeight * 1,
hwnd, (HMENU) 55, hInstance, NULL) ;
hwndedit[15]= CreateWindow ("edit", NULL,
WS_CHILD | WS_VISIBLE |WS_BORDER | ES_LEFT | ES_AUTOHSCROLL,
tm.tmAveCharWidth*77, tm.tmHeight * 15,
tm.tmAveCharWidth * 5,
tm.tmHeight * 1,
hwnd, (HMENU) 16,
(HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL) ;
hwndLabel[16] = CreateWindow ("static", "年龄",
WS_CHILD | WS_VISIBLE | SS_CENTER,
tm.tmAveCharWidth*82, tm.tmHeight * 15,
tm.tmAveCharWidth * 5 ,
tm.tmHeight * 1,
hwnd, (HMENU) 56, hInstance, NULL) ;
hwndedit[16] = CreateWindow ("edit", NULL,
WS_CHILD | WS_VISIBLE |WS_BORDER | ES_LEFT | ES_AUTOHSCROLL,
tm.tmAveCharWidth*87, tm.tmHeight * 15,
tm.tmAveCharWidth * 8,
tm.tmHeight * 1,
hwnd, (HMENU) 17,
(HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL) ;
hwndLabel[17] = CreateWindow ("static", "血型",
WS_CHILD | WS_VISIBLE | SS_CENTER,
tm.tmAveCharWidth*95, tm.tmHeight * 15,
tm.tmAveCharWidth * 5 ,
tm.tmHeight * 1,
hwnd, (HMENU) 57, hInstance, NULL) ;
hwndedit[17] = CreateWindow ("edit", NULL,
WS_CHILD | WS_VISIBLE |WS_BORDER | ES_LEFT | ES_AUTOHSCROLL,
tm.tmAveCharWidth*100, tm.tmHeight * 15,
tm.tmAveCharWidth * 8,
tm.tmHeight * 1,
hwnd, (HMENU) 18,
(HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL) ;
hwndLabel[18] = CreateWindow ("static", "生日",
WS_CHILD | WS_VISIBLE | SS_CENTER,
tm.tmAveCharWidth*72, tm.tmHeight * 17,
tm.tmAveCharWidth * 5 ,
tm.tmHeight * 1,
hwnd, (HMENU) 58, hInstance, NULL) ;
hwndedit[18] = CreateWindow ("edit", NULL,
WS_CHILD | WS_VISIBLE |WS_BORDER | ES_LEFT | ES_AUTOHSCROLL,
tm.tmAveCharWidth*77, tm.tmHeight * 17,
tm.tmAveCharWidth * 8,
tm.tmHeight * 1,
hwnd, (HMENU) 19,
(HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL) ;
hwndLabel[19] = CreateWindow ("static", "年",
WS_CHILD | WS_VISIBLE | SS_CENTER,
tm.tmAveCharWidth*85, tm.tmHeight * 17,
tm.tmAveCharWidth * 3 ,
tm.tmHeight * 1,
hwnd, (HMENU) 59, hInstance, NULL) ;
hwndedit[19] = CreateWindow ("edit", NULL,
WS_CHILD | WS_VISIBLE |WS_BORDER | ES_LEFT | ES_AUTOHSCROLL,
tm.tmAveCharWidth*88, tm.tmHeight * 17,
tm.tmAveCharWidth * 8,
tm.tmHeight * 1,
hwnd, (HMENU) 20,
(HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL) ;
hwndLabel[20] = CreateWindow ("static", "月",
WS_CHILD | WS_VISIBLE | SS_CENTER,
tm.tmAveCharWidth*96, tm.tmHeight * 17,
tm.tmAveCharWidth * 3 ,
tm.tmHeight * 1,
hwnd, (HMENU) 60, hInstance, NULL) ;
hwndedit[20] = CreateWindow ("edit", NULL,
WS_CHILD | WS_VISIBLE |WS_BORDER | ES_LEFT | ES_AUTOHSCROLL,
tm.tmAveCharWidth*99, tm.tmHeight * 17,
tm.tmAveCharWidth * 7,
tm.tmHeight * 1,
hwnd, (HMENU) 21,
(HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL) ;
hwndLabel[21] = CreateWindow ("static", "日",
WS_CHILD | WS_VISIBLE | SS_CENTER,
tm.tmAveCharWidth*106, tm.tmHeight * 17,
tm.tmAveCharWidth * 3 ,
tm.tmHeight * 1,
hwnd, (HMENU) 61, hInstance, NULL) ;
hwndLabel[22] = CreateWindow ("static", "性格",
WS_CHILD | WS_VISIBLE | SS_CENTER,
tm.tmAveCharWidth*72, tm.tmHeight * 19,
tm.tmAveCharWidth * 10 ,
tm.tmHeight * 1,
hwnd, (HMENU) 62, hInstance, NULL) ;
hwndedit[21] = CreateWindow ("edit", NULL,
WS_CHILD | WS_VISIBLE |WS_BORDER | ES_LEFT | ES_MULTILINE | ES_AUTOHSCROLL,
tm.tmAveCharWidth*82, tm.tmHeight * 19,
tm.tmAveCharWidth * 28,
tm.tmHeight * 1,
hwnd, (HMENU) 22,
(HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL) ;
hwndLabel[23] = CreateWindow ("static", "爱好",
WS_CHILD | WS_VISIBLE | SS_CENTER,
tm.tmAveCharWidth*72, tm.tmHeight * 21,
tm.tmAveCharWidth * 10 ,
tm.tmHeight * 1,
hwnd, (HMENU) 63, hInstance, NULL) ;
hwndedit[22] = CreateWindow ("edit", NULL,
WS_CHILD | WS_VISIBLE |WS_BORDER | ES_LEFT | ES_MULTILINE | ES_AUTOHSCROLL,
tm.tmAveCharWidth*82, tm.tmHeight * 21,
tm.tmAveCharWidth * 28,
tm.tmHeight * 1,
hwnd, (HMENU) 23,
(HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL) ;
hwndLabel[24] = CreateWindow ("static", "备注",
WS_CHILD | WS_VISIBLE | SS_CENTER,
tm.tmAveCharWidth*72, tm.tmHeight * 23,
tm.tmAveCharWidth * 10 ,
tm.tmHeight * 1,
hwnd, (HMENU) 64, hInstance, NULL) ;
hwndedit[23] = CreateWindow ("edit", NULL,
WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL |WS_BORDER | ES_LEFT | ES_MULTILINE | ES_AUTOHSCROLL,
tm.tmAveCharWidth*82, tm.tmHeight * 23,
tm.tmAveCharWidth * 28,
tm.tmHeight * 3,
hwnd, (HMENU) 24,
(HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL) ;
fnOldScr[0] = (WNDPROC) SetWindowLong (hwndedit[0], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[1] = (WNDPROC) SetWindowLong (hwndedit[1], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[2] = (WNDPROC) SetWindowLong (hwndedit[2], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[3] = (WNDPROC) SetWindowLong (hwndedit[3], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[4] = (WNDPROC) SetWindowLong (hwndedit[4], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[5] = (WNDPROC) SetWindowLong (hwndedit[5], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[6] = (WNDPROC) SetWindowLong (hwndedit[6], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[7] = (WNDPROC) SetWindowLong (hwndedit[7], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[8] = (WNDPROC) SetWindowLong (hwndedit[8], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[9] = (WNDPROC) SetWindowLong (hwndedit[9], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[10] = (WNDPROC) SetWindowLong (hwndedit[10], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[11] = (WNDPROC) SetWindowLong (hwndedit[11], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[12] = (WNDPROC) SetWindowLong (hwndedit[12], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[13] = (WNDPROC) SetWindowLong (hwndedit[13], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[14] = (WNDPROC) SetWindowLong (hwndedit[14], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[15] = (WNDPROC) SetWindowLong (hwndedit[15], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[16] = (WNDPROC) SetWindowLong (hwndedit[16], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[17] = (WNDPROC) SetWindowLong (hwndedit[17], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[18] = (WNDPROC) SetWindowLong (hwndedit[18], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[19] = (WNDPROC) SetWindowLong (hwndedit[19], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[20] = (WNDPROC) SetWindowLong (hwndedit[20], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[21] = (WNDPROC) SetWindowLong (hwndedit[21], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[22] = (WNDPROC) SetWindowLong (hwndedit[22], GWL_WNDPROC,(LONG)ScrollProc) ;
fnOldScr[23] = (WNDPROC) SetWindowLong (hwndedit[23], GWL_WNDPROC,(LONG)ScrollProc) ;
SendMessage(hwndedit[0], EM_LIMITTEXT, 20, 0L);
SendMessage(hwndedit[1], EM_LIMITTEXT, 200, 0L);
SendMessage(hwndedit[2], EM_LIMITTEXT, 100, 0L);
SendMessage(hwndedit[3], EM_LIMITTEXT, 100, 0L);
SendMessage(hwndedit[4], EM_LIMITTEXT, 100, 0L);
SendMessage(hwndedit[5], EM_LIMITTEXT, 100, 0L);
SendMessage(hwndedit[6], EM_LIMITTEXT, 100, 0L);
SendMessage(hwndedit[7], EM_LIMITTEXT, 100, 0L);
SendMessage(hwndedit[8], EM_LIMITTEXT, 100, 0L);
SendMessage(hwndedit[9], EM_LIMITTEXT, 100, 0L);
SendMessage(hwndedit[10], EM_LIMITTEXT, 200, 0L);
SendMessage(hwndedit[11], EM_LIMITTEXT, 200, 0L);
SendMessage(hwndedit[12], EM_LIMITTEXT, 200, 0L);
SendMessage(hwndedit[13], EM_LIMITTEXT, 200, 0L);
SendMessage(hwndedit[14], EM_LIMITTEXT, 100, 0L);
SendMessage(hwndedit[15], EM_LIMITTEXT, 9, 0L);//2
SendMessage(hwndedit[16], EM_LIMITTEXT, 9, 0L);//3
SendMessage(hwndedit[17], EM_LIMITTEXT, 9, 0L);//3
SendMessage(hwndedit[18], EM_LIMITTEXT, 9, 0L);//4
SendMessage(hwndedit[19], EM_LIMITTEXT, 9, 0L);//2
SendMessage(hwndedit[20], EM_LIMITTEXT, 9, 0L);//2
SendMessage(hwndedit[21], EM_LIMITTEXT, 100, 0L);
SendMessage(hwndedit[22], EM_LIMITTEXT, 200, 0L);
SendMessage(hwndedit[23], EM_LIMITTEXT, 200, 0L);
return 0 ;
case WM_SETFOCUS :
SetFocus (hwndedit[0]) ;
return 0 ;
case WM_COMMAND:
if (LOWORD (wParam) == 30 && HIWORD (wParam) == LBN_SELCHANGE)
{
k = SendMessage (hwndList, LB_GETCURSEL, 0, 0) ;
SendMessage (hwndList, LB_GETTEXT, k,(LPARAM) szBuffer) ;
SetWindowText (hwndedit[0], informa[k].name);
SetWindowText (hwndedit[1], informa[k].workplace);
SetWindowText (hwndedit[2], informa[k].hometel);
SetWindowText (hwndedit[3], informa[k].worktel);
SetWindowText (hwndedit[4], informa[k].freetel);
SetWindowText (hwndedit[5], informa[k].bp);
SetWindowText (hwndedit[6], informa[k].fax);
SetWindowText (hwndedit[7], informa[k].email);
SetWindowText (hwndedit[8], informa[k].web);
SetWindowText (hwndedit[9], informa[k].oicq);
SetWindowText (hwndedit[10], informa[k].workadd);
SetWindowText (hwndedit[11], informa[k].homeadd);
SetWindowText (hwndedit[12], informa[k].post);
SetWindowText (hwndedit[13], informa[k].worksubstance);
SetWindowText (hwndedit[14], informa[k].work);
SetWindowText (hwndedit[15], informa[k].sex);
SetWindowText (hwndedit[16], informa[k].age);
SetWindowText (hwndedit[17], informa[k].blood);
SetWindowText (hwndedit[18], informa[k].year);
SetWindowText (hwndedit[19], informa[k].month);
SetWindowText (hwndedit[20], informa[k].day);
SetWindowText (hwndedit[21], informa[k].temperament);
SetWindowText (hwndedit[22], informa[k].like);
SetWindowText (hwndedit[23], informa[k].note);
return 0;
}
switch (HIWORD (wParam))
{
case EN_ERRSPACE:
case EN_MAXTEXT:
MessageBox (hwnd, "编辑框超出边界!.",
"宇光软件", MB_OK | MB_ICONSTOP);
return 0;
}
switch (LOWORD(wParam))
{
case IDM_NEW://新建
i=0;
szFileName[0] = '\0';
szTitleName[0] = '\0';
szBuffer[0]='\0';
DoCaption (hwnd, szTitleName);
SetWindowText (record[1],itoa (i, file, 10));
SendMessage (hwndList, LB_RESETCONTENT, 0, 0L);
SetWindowText (hwndedit[0], "\0");
SetWindowText (hwndedit[1], "\0");
SetWindowText (hwndedit[2], "\0");
SetWindowText (hwndedit[3],"\0");
SetWindowText (hwndedit[4],"\0");
SetWindowText (hwndedit[5],"\0");
SetWindowText (hwndedit[6], "\0");
SetWindowText (hwndedit[7],"\0");
SetWindowText (hwndedit[8],"\0");
SetWindowText (hwndedit[9], "\0");
SetWindowText (hwndedit[10], "\0");
SetWindowText (hwndedit[11], "\0");
SetWindowText (hwndedit[12], "\0");
SetWindowText (hwndedit[13], "\0");
SetWindowText (hwndedit[14], "\0");
SetWindowText (hwndedit[15], "\0");
SetWindowText (hwndedit[16], "\0");
SetWindowText (hwndedit[17], "\0");
SetWindowText (hwndedit[18], "\0");
SetWindowText (hwndedit[19], "\0");
SetWindowText (hwndedit[20], "\0");
SetWindowText (hwndedit[21], "\0");
SetWindowText (hwndedit[22],"\0");
SetWindowText (hwndedit[23], "\0");
SetFocus (hwndedit[0]) ;
return 0;
case IDM_OPEN:
if(PopFileOpenDlg(hwnd, szFileName, szTitleName))
{SendMessage (hwndList, LB_RESETCONTENT, 0, 0L);
SetWindowText (hwndedit[0], "\0");
SetWindowText (hwndedit[1], "\0");
SetWindowText (hwndedit[2], "\0");
SetWindowText (hwndedit[3],"\0");
SetWindowText (hwndedit[4],"\0");
SetWindowText (hwndedit[5],"\0");
SetWindowText (hwndedit[6], "\0");
SetWindowText (hwndedit[7],"\0");
SetWindowText (hwndedit[8],"\0");
SetWindowText (hwndedit[9], "\0");
SetWindowText (hwndedit[10], "\0");
SetWindowText (hwndedit[11], "\0");
SetWindowText (hwndedit[12], "\0");
SetWindowText (hwndedit[13], "\0");
SetWindowText (hwndedit[14], "\0");
SetWindowText (hwndedit[15], "\0");
SetWindowText (hwndedit[16], "\0");
SetWindowText (hwndedit[17], "\0");
SetWindowText (hwndedit[18], "\0");
SetWindowText (hwndedit[19], "\0");
SetWindowText (hwndedit[20], "\0");
SetWindowText (hwndedit[21], "\0");
SetWindowText (hwndedit[22],"\0");
SetWindowText (hwndedit[23], "\0");
PopFileRead(szFileName);
for(j=0;j<i;j++)
{
SendMessage (hwndList, LB_ADDSTRING, 0, (LPARAM) informa[j].name);
}
SetWindowText (record[1],itoa (i, file, 10));
DoCaption (hwnd, szTitleName);
return 0;
}
else
return 0;
case 90:
if(!addPopFileWrite(szFileName))
{
if(PopFileSaveDlg (hwnd, szFileName,szTitleName))
{
addPopFileWrite(szFileName);
SendMessage (hwndList, LB_ADDSTRING, 0, (LPARAM)infor.name); //没打开文件时添加名片
DoCaption (hwnd, szTitleName);
i++;
SetWindowText (record[1],itoa (i, file, 10));
strcpy(informa[i-1].name,infor.name);
strcpy(informa[i-1].workplace, infor.workplace);
strcpy(informa[i-1].hometel ,infor.hometel);
strcpy(informa[i-1].worktel, infor.worktel);
strcpy(informa[i-1].freetel ,infor.freetel);
strcpy(informa[i-1].bp ,infor.bp);
strcpy(informa[i-1].fax ,infor.fax);
strcpy(informa[i-1].email, infor.email);
strcpy(informa[i-1].web, infor.web);
strcpy(informa[i-1].oicq, infor.oicq);
strcpy(informa[i-1].workadd ,infor.workadd);
strcpy(informa[i-1].homeadd, infor.homeadd);
strcpy(informa[i-1].post ,infor.post);
strcpy(informa[i-1].worksubstance ,infor.worksubstance);
strcpy(informa[i-1].work, infor.work);
strcpy(informa[i-1].sex ,infor.sex);
strcpy(informa[i-1].age, infor.age);
strcpy(informa[i-1].blood, infor.blood);
strcpy(informa[i-1].year, infor.year);
strcpy(informa[i-1].month, infor.month);
strcpy(informa[i-1].day ,infor.day);
strcpy(informa[i-1].temperament, infor.temperament);
strcpy(informa[i-1].like ,infor.like);
strcpy(informa[i-1].note ,infor.note);
if(i==100||i==200||i==300||i==400||i==500||i==600||i==700||i==800||i==900||i==1000||i==1100||i==1200||i==1300||i==1400||i==1500||i==1600||i==1700||i==1800||i==1900)
{ wsprintf(wsprintfBuffer,"你的名片已经达到%d个,为保证你的资料安全,宇光建议您将所有名片进行备份!",i);
if(IDOK==MessageBox (hwnd,wsprintfBuffer, "宇光名片管理程序", MB_DEFBUTTON2|MB_OKCANCEL | MB_ICONEXCLAMATION))
{ PopFileSaveDlg (hwnd, szFileName,szTitleName);
delPopFileWrite(i,szFileName);
}
}
if(i==2000)
{ wsprintf(wsprintfBuffer,"你的名片已经达到%d个,由于本软件一个文件名只能保存2001个名片,请新建一个文件保存!",i);
if(IDOK==MessageBox (hwnd,wsprintfBuffer, "宇光名片管理程序", MB_DEFBUTTON2|MB_OKCANCEL | MB_ICONEXCLAMATION))
{ PopFileSaveDlg (hwnd, szFileName,szTitleName);
delPopFileWrite(i,szFileName);
}
}
}
return 0;
}
SendMessage (hwndList, LB_ADDSTRING, 0, (LPARAM)infor.name);
DoCaption (hwnd, szTitleName);
i++;
SetWindowText (record[1],itoa (i, file, 10));
strcpy(informa[i-1].name,infor.name);
strcpy(informa[i-1].workplace, infor.workplace);
strcpy(informa[i-1].hometel ,infor.hometel);
strcpy(informa[i-1].worktel, infor.worktel);
strcpy(informa[i-1].freetel ,infor.freetel);
strcpy(informa[i-1].bp ,infor.bp);
strcpy(informa[i-1].fax ,infor.fax);
strcpy(informa[i-1].email, infor.email);
strcpy(informa[i-1].web, infor.web);
strcpy(informa[i-1].oicq, infor.oicq);
strcpy(informa[i-1].workadd ,infor.workadd);
strcpy(informa[i-1].homeadd, infor.homeadd);
strcpy(informa[i-1].post ,infor.post);
strcpy(informa[i-1].worksubstance ,infor.worksubstance);
strcpy(informa[i-1].work, infor.work);
strcpy(informa[i-1].sex ,infor.sex);
strcpy(informa[i-1].age, infor.age);
strcpy(informa[i-1].blood, infor.blood);
strcpy(informa[i-1].year, infor.year);
strcpy(informa[i-1].month, infor.month);
strcpy(informa[i-1].day ,infor.day);
strcpy(informa[i-1].temperament, infor.temperament);
strcpy(informa[i-1].like ,infor.like);
strcpy(informa[i-1].note ,infor.note);
if(i==100||i==200||i==300||i==400||i==500||i==600||i==700||i==800||i==900||i==1000||i==1100||i==1200||i==1300||i==1400||i==1500||i==1600||i==1700||i==1800||i==1900)
{ wsprintf(wsprintfBuffer,"你的名片已经达到%d个,为保证你的资料安全,宇光建议您将所有名片进行备份!",i);
if(IDOK==MessageBox (hwnd,wsprintfBuffer, "宇光名片管理程序", MB_DEFBUTTON2|MB_OKCANCEL | MB_ICONEXCLAMATION))
{ PopFileSaveDlg (hwnd, szFileName,szTitleName);
delPopFileWrite(i,szFileName);
}
}
if(i==2000)
{ wsprintf(wsprintfBuffer,"你的名片已经达到%d个,由于本软件一个文件名只能保存2001个名片,请新建一个文件保存!",i);
if(IDOK==MessageBox (hwnd,wsprintfBuffer, "宇光名片管理程序", MB_DEFBUTTON2|MB_OKCANCEL | MB_ICONEXCLAMATION))
{ PopFileSaveDlg (hwnd, szFileName,szTitleName);
delPopFileWrite(i,szFileName);
}
}
return 0;
case 91:
if(i!=0)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -