[聲明]
Declare Function GetEnhMetaFilePaletteEntries Lib "gdi32" Alias "GetEnhMetaFilePaletteEntries" (ByVal hemf As Long, ByVal cEntries As Long, lppe As PALETTEENTRY) As Long
[說明]
取得增強型圖元檔案的全部或部分調色板
[參數表]
hemf ----------- Long,增強型圖元檔案的句柄
cEntries ------- Long,欲取回的條目數量
[返回值]
Long,如lppe為零(用ByVal As Long在這種情況下傳遞一個NULL參數)則必須設定緩衝區的長度。如執行成功,返回緩衝區實際載入的條目數量;如圖元檔案中不存在調色板就返回一個零值。如返回GDI_ERROR,表示函式執行出錯