VP列印過程彈出對話方塊

2021-09-30 09:55:29 字數 602 閱讀 9888

1.建立對話方塊資源,id為:idd_dialog_file,有乙個輸入檔名的edit和乙個確定button (idok)

2.在列印檔案之前新增**:

// 彈出乙個輸入檔名字首的視窗

int nflag = dialogbox(g_hinstance, makeintresource(idd_dialog_file), null, (dlgproc)dialogboxproc);

if (nflag == -1)

// 判斷檔名字首是否為空

if (0 == g_szfilenamepre[0])

dialogboxproc函式定義如下:

bool callback dialogboxproc(hwnd hdlg,uint message,wparam wparam,lparam lparam)

case wm_command:

break; }

case wm_close:

enddialog(hdlg, message);

postquitmessage(0);

default:

break; }

return false;

彈出對話方塊

先定義 private view view private alertdialog mprotocoldialog 彈出對話方塊 private void loadprotocol mprotocoldialog new alertdialog.builder this settitle getst...

彈出對話方塊

call function popup to confirm exporting titlebar diagnose object text question anything else?text button 1 yes?icon button 1 15 text button 2 no 002 ...

彈出對話方塊

data answer 20 type c.call function popup to confirm exporting titlebar diagnose object text question anything else?text button 1 yes?icon button 1 15...