win32 api說明中有些參數是以Null代入,在delphi 呼叫時要用什麼代替null? |
答題得分者是:ha0009
|
ry_lee
高階會員 發表:368 回覆:251 積分:123 註冊:2002-03-19 發送簡訊給我 |
|
ha0009
版主 發表:16 回覆:507 積分:639 註冊:2002-03-16 發送簡訊給我 |
|
cmf
尊榮會員 發表:84 回覆:918 積分:1032 註冊:2002-06-26 發送簡訊給我 |
|
ha0009
版主 發表:16 回覆:507 積分:639 註冊:2002-03-16 發送簡訊給我 |
你好:
補充說明,以下列宣告為例,如果屬於指標型態可用 nil 或 0 帶入,
如果是數值型態則僅能帶入 0 。 API 原型宣告
int MessageBox(
HWND hWnd, // handle of owner window
LPCTSTR lpText, // address of text in message box
LPCTSTR lpCaption, // address of title of message box
UINT uType // style of message box
); Parameters hWnd
Identifies the owner window of the message box to be created. If this parameter is NULL, the message box has no owner window. lpText
Points to a null-terminated string containing the message to be displayed. lpCaption
Points to a null-terminated string used for the dialog box title. If this parameter is NULL, the default title Error is used. uType
Specifies a set of bit flags that determine the contents and behavior of the dialog box. This parameter can be a combination of flags from the following groups of flags.
Specify one of the following flags to indicate the buttons contained in the message box: Delphi 宣告
function MessageBox(
hWnd: HWND;
lpText, lpCaption: PChar;
uType: UINT): Integer; stdcall;
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |