View previous topic :: View next topic |
Author |
Message |
ilitirit
Joined: 28 Dec 2004 Posts: 7
|
Posted: Mon Jan 03, 2005 6:30 am Post subject: Wrapping custom controls in a Control class? |
|
|
I created a progressbar using CreateWindowExA. I'd like to wrap the progress bar's handle inside a "Control" object so that it fits within my application's framework but I can't figure out how.
Is it possible to do this?
There is a "fromHandle" method on the Control class that returns a Control object but I checked the source and it only seems to work for controls that already exist in the Application.controls array, otherwise it returns null.
|
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Mon Jan 03, 2005 11:44 pm Post subject: |
|
|
For now you could just put the window on a new Control just for it. I haven't made it possible yet to create other controls because I wasn't sure how I wanted to handle it. There will be a way in the future.
- Chris |
|
Back to top |
|
|
|