使用的CoreFoundation,我可以顯示以下內容的警告對話框:在Windows上顯示自定義按鈕標題的提醒?
CFUserNotificationDisplayAlert(0.0,
kCFUserNotificationPlainAlertLevel,
NULL, NULL, NULL,
CFSTR("Alert title"),
CFSTR("Yes?),
CFSTR("Affirmative"),
CFSTR("Nah"),
NULL, NULL);
這個使用Windows C API如何複製?我已經得到最接近的是:
MessageBox(NULL, "Yes?", "Alert title", MB_OKCANCEL);
但硬編碼「確定」和「取消」的按鈕標題,這不是我想要的。有沒有辦法解決這個問題,或者使用其他功能?
絕對邪惡的+1! – Eric 2009-12-22 22:31:00
+1 LOL這實際上會工作 – 2009-12-23 08:34:27
niice代碼。的確,愚蠢的傢伙。 +1 – Hobhouse 2009-12-23 21:39:45