... | ... | @@ -9,7 +9,7 @@ |
|
|
**1. Z:\ATOM\source\rctool\ATOM\group.bat 실행 :** atom_cmd.xml 파일을 이용해서 group.xml 파일 생성
|
|
|
>**group.xml**
|
|
|
|
|
|
```xml
|
|
|
```xml
|
|
|
<group>
|
|
|
<dialog-group name="slot_port" caption="슬롯/포트 관리">
|
|
|
<dialog name-in-xml="slot" name="slot" caption="슬롯 구성정보">
|
... | ... | @@ -33,28 +33,30 @@ |
|
|
</dialog>
|
|
|
</dialog-group>
|
|
|
</group>
|
|
|
```
|
|
|
```
|
|
|
|
|
|
**2. Z:\ATOM\source\rctool\ATOM\group.bat 실행 :** 프로젝트에 맞게 group.xml, dialog.xml 파일을 수정한 후 group.bat 을 실행시키면 rc 파일 및 코드가 생성된다.
|
|
|
|
|
|
**3. 프로젝트에 생성된 파일 대체 및 다이얼로그 재배치**
|
|
|
|
|
|
* Button Handler
|
|
|
>생성된 다이얼로그 클래스 파일(ex) MML_alm.cpp)의 OnButtonInitAlmhis 함수
|
|
|
### **다) Button Handler**
|
|
|
>생성된 다이얼로그 클래스 파일(ex) )의 OnButtonInitAlmhis 함수
|
|
|
|
|
|
```cpp
|
|
|
void MML_alm::OnButtonInitAlmhis()
|
|
|
{
|
|
|
MML_REDIRECT_COMBO(IDC_COMBO_RTRVALM_AID_ALL_SHELF_SLOT_1, IDC_COMBO_INITALMHIS_AID_SHELF_1);
|
|
|
```cpp
|
|
|
// MML_alm.cpp file
|
|
|
|
|
|
//{{LEMON_FUNC_BODY:MML_alm::OnButtonInitAlmhis
|
|
|
// the Lemon (rctool) will replace codes here
|
|
|
Iris3mmiw_SetActiveMmiWnd(m_pCmdCenter);
|
|
|
void MML_alm::OnButtonInitAlmhis()
|
|
|
{
|
|
|
MML_REDIRECT_COMBO(IDC_COMBO_RTRVALM_AID_ALL_SHELF_SLOT_1, IDC_COMBO_INITALMHIS_AID_SHELF_1);
|
|
|
|
|
|
CmdInitAlmhisRequest(GetSafeHwnd(), 0, 0, (void*)GetSafeHwnd(), Lemon_SendCommand);
|
|
|
//}}LEMON_FUNC_BODY
|
|
|
}
|
|
|
```
|
|
|
//{{LEMON_FUNC_BODY:MML_alm::OnButtonInitAlmhis
|
|
|
// the Lemon (rctool) will replace codes here
|
|
|
Iris3mmiw_SetActiveMmiWnd(m_pCmdCenter);
|
|
|
|
|
|
CmdInitAlmhisRequest(GetSafeHwnd(), 0, 0, (void*)GetSafeHwnd(), Lemon_SendCommand);
|
|
|
//}}LEMON_FUNC_BODY
|
|
|
}
|
|
|
```
|
|
|
**MML_REDIRECT_COMBO :**
|
|
|
생성된 다이얼로그를 배치하면 아래 그림과 같다.
|
|
|

|
... | ... | |