Click to See Complete Forum and Search --> : Using window property


erw2
January 25th, 2006, 12:20 AM
Hi,
I have a question concerning using windows properties. I would like to attach to the window as a private data a matrix of double, let say dmat[10]. How to attach this matrix with SetProp function, and then "read" it later on with GetProp function?

Regards
erw2.

golanshahar
January 25th, 2006, 02:16 AM
look at ::SetWindowLong(..) (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windowclasses/windowclassreference/windowclassfunctions/setwindowlong.asp) with GWL_USERDATA.

Cheers

erw2
January 25th, 2006, 03:08 AM
So, I have written not complete story... I have tried and this worked with SetWindowLong/GetWindowLong but only when matrix size was defined. I need matrix size to be defined with new operator, because initially I don't know it. I don't know how to accompished this...

Regards
erw2