1 NX11 + VS2013 2 3。 4。の#include <uf.h> 5。の#include <uf_ui.h> 6。 7。 8。 UF_initialize(); 9 10 // マルチモーダルダイアログボタン 11 のint応答= 0 ; 12である CHAR = [] title_string " これは、タイトルである" ; 13 CHAR * sMessages = " このプロンプトコンテンツである" ; 14 UF_UI_MESSAGE_DIALOG_TYPE DIALOG_TYPE = UF_UI_MESSAGE_ERROR; //対話型UF_UI_MESSAGE_ERROR、UF_UI_MESSAGE_WARNING、UF_UI_MESSAGE_INFORMATION、UF_UI_MESSAGE_QUESTION 15 UF_UI_message_buttons_sボタン; 16 button.button1 = trueに ; // 制御ボタンの数 17。 button.button2 = trueに、 18である button.button3 = 真の; 19 button.label1 = " はい"。// ボタンの名前 20 button.label2 = " いいえ" ; 21 button.label3は= " キャンセル" ; 22 button.response1 = 1。// ボタンの戻り値 23はされ = button.response2 2 ; 24 button.response3 = 3 ; 25 UF_UI_message_dialog(title_string、DIALOG_TYPE、&sMessages、1、0、&ボタン、および応答)、 26は スイッチ(レスポンス) 27 { 28 ケース 1: uc1601(button.label1、1); BREAK ; // 選択されたボタンの名称表示 29 ケース 2:uc1601(button.label2、1 ;)BREAK ; 30 ケース 3:uc1601(button.label3、1); BREAK ; 31は、 デフォルト:uc1601(" 不明ボタン"、1); BREAK ; 32 } 33は、 34である 35 )UF_terminate(; 36 37 [ シーザーLushangゆう 38である 2019年6月27日
マルチボタンのNX二次開発-UFUNモーダルダイアログUF_UI_message_dialog
おすすめ
転載: www.cnblogs.com/nxopen2018/p/11099351.html
おすすめ
ランキング