완성. L Series C/S 검사 프로그램 - demo 화면. main코드
(예전취미)전자회로 개발/1004 2 마이컴 체커 통합 Final ver. 2010. 3. 21. 15:51업무용 프로그램을 직접 개발했습니다.
문자열을 단순비교하는 원시적인 프로그래밍입니다.
작동 잘되면 장땡이라는 생각으로 만든 프로그램.
개발언어는 윈도우용 API. 사용환경은 윈도우XP입니다.
데모화면
#include#include "resource.h" BOOL CALLBACK DlgProc(HWND hDlg,UINT iMessage,WPARAM wParam,LPARAM lParam); HINSTANCE g_hInst; LPSTR lpszClass="L Series"; //Dialog Based Program int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) { DialogBox(g_hInst,MAKEINTRESOURCE(IDD_DIALOG1),NULL,DlgProc); return 0; } BOOL CALLBACK DlgProc(HWND hDlg,UINT iMessage,WPARAM wParam,LPARAM lParam) { char str[14]; str[0]='\0'; switch (iMessage){ case WM_INITDIALOG : return TRUE; case WM_COMMAND : //라디오 버튼 if(HIWORD(wParam)==BN_CLICKED){ GetDlgItemText(hDlg,IDC_INPUT,str,14); switch(LOWORD(wParam)){ case IDC_RB1W: //9C3C if(str[0]=='D' && str[3]=='U' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LU 1ST 1W COLD NOSTM C/S 9C3C")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBBLDC,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBUNIVERSAL); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBHI1W); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBNOSTEAM); }//9C3C //7EE7 if(str[0]=='D' && str[3]=='U' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='G' || str[9]=='H' || str[9]=='Z') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LU 1ST 1W HOT NOSTM C/S 7EE7")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBUNIVERSAL); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBHI1W); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBHOT); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBNOSTEAM); }//7EE7 //C91F if(str[0]=='D' && str[3]=='U' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LU 1ST 1W COLD STM C/S C91F")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBUNIVERSAL); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBHI1W); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//C91F //6FA0 if(str[0]=='D' && str[3]=='D' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LD 1ST 1W COLD NOSTM C/S 6FA0")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBHI1W); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBNOSTEAM); }//6FA0 //F3BC if(str[0]=='D' && str[3]=='D' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LD 1ST 1W COLD STM C/S F3BC")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBHI1W); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//F3BC //EBF1 if(str[0]=='D' && str[3]=='D' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LD 1ST 1W HOT STM C/S EBF1")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBHI1W); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBHOT); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//EBF1 //9C8F if(str[0]=='C' && str[3]=='D' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LD 1ST 1W COLD NOSTM C/S 9C8F")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBHI1W); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBNOSTEAM); }//9C8F //1735 if(str[0]=='C' && str[3]=='D' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LD 1ST 1W COLD STM C/S 1735")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBHI1W); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//1735 //F456 if(str[0]=='C' && str[3]=='D' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LD 1ST 1W HOT STM C/S F456")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBHI1W); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBHOT); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//F456 //A8EB if(str[0]=='D' && str[3]=='D' && str[5]=='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='G' || str[9]=='H' || str[9]=='Z') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LD 161ST 1W HOT STM C/S A8EB")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1600); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBHI1W); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBHOT); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//A8EB //C51A if(str[0]=='D' && str[3]=='D' && str[5]!='6' && str[6]=='2' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LD 2ND 1W COLD STM C/S A8EB")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBSECOND); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBHI1W); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//C51A //8D81 if(str[0]=='D' && str[3]=='D' && str[5]!='6' && str[6]=='2' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LD 2ND 1W COLD NOSTM C/S A8EB")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBSECOND); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBHI1W); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBNOSTEAM); }//8D81 //508C if(str[0]=='D' && str[3]=='U' //&& str[5]!='6' && str[6]=='2' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LU 2ND 1W COLD NOSTM C/S 508C")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBUNIVERSAL); //CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBSECOND); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBHI1W); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBNOSTEAM); }//508C //56AD if(str[0]=='C' && str[3]=='U' //&& str[5]!='6' && str[6]=='2' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='G' || str[9]=='H' || str[9]=='Z') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LU 2ND 1W HOT STM C/S 56AD")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBUNIVERSAL); //CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBSECOND); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBHI1W); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBHOT); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//56AD return TRUE; case IDC_RBEC: //D989 if(str[0]=='D' && str[3]=='U' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LU 1ND EC COLD NOSTM C/S D989")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBUNIVERSAL); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBNOSTEAM); }//D989 //6406 if(str[0]=='D' && str[3]=='D' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LD 1ND EC COLD NOSTM C/S 6406")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBNOSTEAM); }//6406 //CDA6 if(str[0]=='D' && str[3]=='D' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LD 1ST EC COLD STM C/S CDA6")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//CDA6 //B494 if(str[0]=='D' && str[3]=='D' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='G' || str[9]=='H' || str[9]=='Z') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LD 1ST EC HOT STM C/S B494")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBHOT); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//B494 //7EF4 if(str[0]=='C' && str[3]=='U' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LU 1ST EC COLD NOSTM C/S 7EF4")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBUNIVERSAL); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBNOSTEAM); }//7EF4 //D19A if(str[0]=='C' && str[3]=='D' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LD 1ST EC COLD NOSTM C/S D19A")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBNOSTEAM); }//D19A //A935 if(str[0]=='C' && str[3]=='D' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LD 1ST EC COLD STM C/S A935")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//A935 //067D if(str[0]=='C' && str[3]=='D' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='G' || str[9]=='H' || str[9]=='Z') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LD 1ST EC HOT STM C/S 067D")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBHOT); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//067D //B024 if(str[0]=='C' && str[3]=='D' && str[5]!='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='G' || str[9]=='H' || str[9]=='Z') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LD 1ST EC HOT NOSTM C/S B024")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBHOT); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBNOSTEAM); }//B024 //385E if(str[0]=='C' && str[3]=='D' && str[5]=='6' && str[6]=='1' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='G' || str[9]=='H' || str[9]=='Z') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LD 161STT EC HOT STM C/S 383E")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1600); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBHOT); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//385E //674F if(str[0]=='C' && str[3]=='D' && str[5]!='6' && str[6]=='1' && str[8]=='T' || str[8]=='A' || str[8]=='S' || str[8]=='J' || str[8]=='D' && (str[9]=='G' || str[9]=='H' || str[9]=='Z') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LD 1ST EC 110V HOT STM C/S 674F")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBLOVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBHOT); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//674F //79C8 if(str[0]=='D' && str[3]=='D' && str[5]!='6' && str[6]=='2' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LD 2ND EC COLD STM C/S 79C8")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBSECOND); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//79C8 //3B14 if(str[0]=='D' && str[3]=='D' && str[5]!='6' && str[6]=='2' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='G' || str[9]=='H' || str[9]=='Z') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LD 2ND EC HOT STM C/S 3B14")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBSECOND); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBHOT); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//3B14 //FC29 if(str[0]=='C' && str[3]=='D' && str[5]!='6' && str[6]=='2' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='G' || str[9]=='H' || str[9]=='Z') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LD 2ND EC HOT STM C/S FC29")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBSECOND); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBHOT); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//FC29 //9B3B if(str[0]=='C' && str[3]=='D' && str[5]!='6' && str[6]=='2' && str[8]=='T' || str[8]=='A' || str[8]=='S' || str[8]=='J' || str[8]=='D' && (str[9]=='G' || str[9]=='H' || str[9]=='Z') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LD 2ND 110V EC HOT NOSTM C/S 9B3B")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBFIRST); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBLOVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//9B3B //F39C if(str[0]=='D' && str[3]=='U' //&& str[5]!='6' && str[6]=='2' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("D-LU 2ND EC COLD NOSTM C/S F39C")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBWASH); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBUNIVERSAL); //CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBSECOND); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBNOSTEAM); }//F39C //7639 if(str[0]=='C' && str[3]=='U' //&& str[5]!='6' && str[6]=='2' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]!='0' && str[12]!='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LU 2ND EC COLD NOSTM C/S 7639")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBUNIVERSAL); //CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1400); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBSECOND); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBNOSTEAM); }//7639 //8563 if(str[0]=='C' && str[3]=='D' && str[5]=='6' && str[6]=='2' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='G' || str[9]=='H' || str[9]=='Z') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LD 162ND EC HOT STM C/S 8563")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1600); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBSECOND); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBHOT); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//8563 //B25F if(str[0]=='C' && str[3]=='D' && str[5]=='6' && str[6]=='2' && str[8]!='T' && str[8]!='A' && str[8]!='S' && str[8]!='J' && str[8]!='D' && (str[9]=='F' || str[9]=='P' || str[9]=='C') && str[11]=='0' && str[12]=='2'){ SetDlgItemText(hDlg,IDC_OUTPUT,TEXT("C-LD 162ND EC COLD STM C/S B25F")); CheckRadioButton(hDlg,IDC_RBWASH,IDC_RBCOMBO,IDC_RBCOMBO); CheckRadioButton(hDlg,IDC_RBUNIVERSAL,IDC_RBBLDC,IDC_RBBLDC); CheckRadioButton(hDlg,IDC_RB1600,IDC_RB1400,IDC_RB1600); CheckRadioButton(hDlg,IDC_RBFIRST,IDC_RBSECOND,IDC_RBSECOND); CheckRadioButton(hDlg,IDC_RBHI1W,IDC_RBMIDEC,IDC_RBMIDEC); CheckRadioButton(hDlg,IDC_RBHIVOLT,IDC_RBLOVOLT,IDC_RBHIVOLT); CheckRadioButton(hDlg,IDC_RBCOLD,IDC_RBHOT,IDC_RBCOLD); CheckRadioButton(hDlg,IDC_RBSTEAM,IDC_RBNOSTEAM,IDC_RBSTEAM); }//B25F return TRUE; }//switch(LOWORD(wParam)) }//if(HIWORD(wParam)==BN_CLICKED) //컨트롤 버튼 switch(LOWORD(wParam)){ case IDCANCEL : EndDialog(hDlg, 0); return TRUE; } break; } return FALSE; }