Commit 1eb7cca1 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

include: Use existing DISPID values instead of magic numbers.

parent 6824cae6
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#pragma makedep typelib #pragma makedep typelib
#include <olectl.h>
[ [
uuid(00020430-0000-0000-C000-000000000046), uuid(00020430-0000-0000-C000-000000000046),
version(2.0), version(2.0),
...@@ -272,14 +274,14 @@ library stdole ...@@ -272,14 +274,14 @@ library stdole
] ]
dispinterface Font { dispinterface Font {
properties: properties:
[id(0x0)] BSTR Name; [id(DISPID_FONT_NAME)] BSTR Name;
[id(0x2)] CURRENCY Size; [id(DISPID_FONT_SIZE)] CURRENCY Size;
[id(0x3)] VARIANT_BOOL Bold; [id(DISPID_FONT_BOLD)] VARIANT_BOOL Bold;
[id(0x4)] VARIANT_BOOL Italic; [id(DISPID_FONT_ITALIC)] VARIANT_BOOL Italic;
[id(0x5)] VARIANT_BOOL Underline; [id(DISPID_FONT_UNDER)] VARIANT_BOOL Underline;
[id(0x6)] VARIANT_BOOL Strikethrough; [id(DISPID_FONT_STRIKE)] VARIANT_BOOL Strikethrough;
[id(0x7)] short Weight; [id(DISPID_FONT_WEIGHT)] short Weight;
[id(0x8)] short Charset; [id(DISPID_FONT_CHARSET)] short Charset;
methods: methods:
} }
...@@ -351,13 +353,14 @@ library stdole ...@@ -351,13 +353,14 @@ library stdole
] ]
dispinterface Picture { dispinterface Picture {
properties: properties:
[id(0x0), readonly] OLE_HANDLE Handle; [id(DISPID_PICT_HANDLE), readonly] OLE_HANDLE Handle;
[id(0x2)] OLE_HANDLE hPal; [id(DISPID_PICT_HPAL)] OLE_HANDLE hPal;
[id(0x3), readonly] short Type; [id(DISPID_PICT_TYPE), readonly] short Type;
[id(0x4), readonly] OLE_XSIZE_HIMETRIC Width; [id(DISPID_PICT_WIDTH), readonly] OLE_XSIZE_HIMETRIC Width;
[id(0x5), readonly] OLE_YSIZE_HIMETRIC Height; [id(DISPID_PICT_HEIGHT), readonly] OLE_YSIZE_HIMETRIC Height;
methods: methods:
[id(0x6)] void Render(int hdc, [id(DISPID_PICT_RENDER)]
void Render(int hdc,
long x, long x,
long y, long y,
long cx, long cx,
...@@ -424,7 +427,7 @@ library stdole ...@@ -424,7 +427,7 @@ library stdole
dispinterface FontEvents { dispinterface FontEvents {
properties: properties:
methods: methods:
[id(0x9)] void FontChanged([in] BSTR PropertyName); [id(DISPID_FONT_CHANGED)] void FontChanged([in] BSTR PropertyName);
}; };
typedef [public] FontEvents IFontEventsDisp; typedef [public] FontEvents IFontEventsDisp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment