Update of /cvsroot/pywin32/pywin32/win32/src
In directory sc8-pr-cvs1:/tmp/cvs-serv9329
Modified Files:
win32gui.i
Log Message:
Add RegisterWindowMessage and ReplyMessage. Allow InsertMenu to specify
a NULL string, and various autoduck corrections.
Index: win32gui.i
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/src/win32gui.i,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** win32gui.i 1 Sep 2003 12:06:07 -0000 1.29
--- win32gui.i 6 Oct 2003 11:06:19 -0000 1.30
***************
*** 1135,1138 ****
--- 1135,1145 ----
BOOLAPI PostThreadMessage(DWORD dwThreadId, UINT msg, WPARAM wParam, LPARAM lParam);
+ // @pyswig int|ReplyMessage|Used to reply to a message sent through the SendMessage function without returning control to the function that called SendMessage.
+ BOOLAPI ReplyMessage(int lResult); // @pyparm int|result||Specifies the result of the message processing. The possible values are based on the message sent.
+
+ // @pyswig int|RegisterWindowMessage|Defines a new window message that is guaranteed to be unique throughout the system. The message value can be used when sending or posting messages.
+ // @pyparm string/unicode|name||The string
+ LRESULT RegisterWindowMessage(TCHAR *lpString);
+
// @pyswig int|DefWindowProc|
// @pyparm int|hwnd||The handle to the Window
***************
*** 1439,1444 ****
// @pyswig HANDLE|LoadImage|Loads a bitmap, cursor or icon
! HANDLE LoadImage(HINSTANCE hInst, RESOURCE_ID name, UINT type,
! int cxDesired, int cyDesired, UINT fuLoad);
#define IMAGE_BITMAP IMAGE_BITMAP
--- 1446,1455 ----
// @pyswig HANDLE|LoadImage|Loads a bitmap, cursor or icon
! HANDLE LoadImage(HINSTANCE hInst, // @pyparm int|hinst||Handle to an instance of the module that contains the image to be loaded. To load an OEM image, set this parameter to zero.
! RESOURCE_ID name, // @pyparm int/string|name||Specifies the image to load. If the hInst parameter is non-zero and the fuLoad parameter omits LR_LOADFROMFILE, name specifies the image resource in the hInst module. If the image resource is to be loaded by name, the name parameter is a string that contains the name of the image resource.
! UINT type, // @pyparm int|type||Specifies the type of image to be loaded.
! int cxDesired, // @pyparm int|cxDesired||Specifies the width, in pixels, of the icon or cursor. If this parameter is zero and the fuLoad parameter is LR_DEFAULTSIZE, the function uses the SM_CXICON or SM_CXCURSOR system metric value to set the width. If this parameter is zero and LR_DEFAULTSIZE is not used, the function uses the actual resource width.
! int cyDesired, // @pyparm int|cyDesired||Specifies the height, in pixels, of the icon or cursor. If this parameter is zero and the fuLoad parameter is LR_DEFAULTSIZE, the function uses the SM_CYICON or SM_CYCURSOR system metric value to set the height. If this parameter is zero and LR_DEFAULTSIZE is not used, the function uses the actual resource height.
! UINT fuLoad); // @pyparm int|fuLoad||
#define IMAGE_BITMAP IMAGE_BITMAP
***************
*** 1456,1460 ****
#define LR_VGACOLOR LR_VGACOLOR
! // pyswig |DeleteObject||Deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid.
BOOLAPI DeleteObject(HANDLE h); // @pyparm int|handle||handle to the object to delete.
--- 1467,1471 ----
#define LR_VGACOLOR LR_VGACOLOR
! // @pyswig |DeleteObject|Deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid.
BOOLAPI DeleteObject(HANDLE h); // @pyparm int|handle||handle to the object to delete.
***************
*** 2067,2071 ****
#endif
BOOLAPI AppendMenu(HMENU hMenu, UINT uFlags, UINT uIDNewItem, TCHAR *lpNewItem);
! BOOLAPI InsertMenu(HMENU hMenu, UINT uPosition, UINT uFlags, UINT uIDNewItem, TCHAR *lpNewItem);
/*
--- 2078,2082 ----
#endif
BOOLAPI AppendMenu(HMENU hMenu, UINT uFlags, UINT uIDNewItem, TCHAR *lpNewItem);
! BOOLAPI InsertMenu(HMENU hMenu, UINT uPosition, UINT uFlags, UINT uIDNewItem, TCHAR *INPUT_NULLOK);
/*
|