Pointer to a struct, win32

Mark Hammond mhammond at skippinet.com.au
Thu Oct 31 18:54:29 EST 2002


Lao Coon wrote:
> Hi
> I'm trying to find a way to make a pointer to a string so i can pass it to 
> SendMessage.
> I have to send a TCM_GETITEM msg to a tabcontrol which will then store the 
> item info in a TC_ITEM struct. A pointer to the struct should be passed as 
> second message argument. 
> 
> i.e. SendMessage(hWnd, TCM_GETITEM, itemID, ptrToStruct)
> 
> I know i will have to unpack the C-Struct string, but i see no way to pass 
> a pointer to a string. Am i overlooking something fundamental?
> 
> Any help appreciated..

Use the win32ui module - it has full support for tree controls.

If you want to go that route, you need to get dirty with the struct 
module and friends.

Mark.




More information about the Python-list mailing list