私はC#に変換するためにいくつかのVB6を読んでいます。この行はどういう意味ですか?と0&
同等IntPtr.Zero
ですか?
//'Get a Device context
hdc = GetDC(0&)
IntPtr.Zero
この値はピンボークに使用されるため、オブジェクトを選択する必要があるため、意味がわかりません。
OldFont = SelectObject(hdc, ObjFont)
ObjFontは、
//'Get the Window's font
ObjFont = SendMessage(hwnd, WM_GETFONT, 0, 0&)//there's that mysterious 0& agaain.