- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HELP! I'm ActiveX challenged.
I'm using the Avis 2D ActiveX control. I want to resize it dynamically to fit the dialog. I *think* I want to use SetWindowPos(), the trouble is it takes a HWND structure referring to the window I want to resize. I try to use either my the ID referring to the Control, and have tried childHWND = GetWindow(parentHWND, GW_CHILD). neither has any effect.
I also tried setting the attributes on the ActiveX setting 'HEIGHT', etc.
Nothing works, some things I've tried blow up.
So my question is really:
How do I resize an ActiveX control in FORTRAN?
Samples would be appreciated.
Thanks!
I'm using the Avis 2D ActiveX control. I want to resize it dynamically to fit the dialog. I *think* I want to use SetWindowPos(), the trouble is it takes a HWND structure referring to the window I want to resize. I try to use either my the ID referring to the Control, and have tried childHWND = GetWindow(parentHWND, GW_CHILD). neither has any effect.
I also tried setting the attributes on the ActiveX setting 'HEIGHT', etc.
Nothing works, some things I've tried blow up.
So my question is really:
How do I resize an ActiveX control in FORTRAN?
Samples would be appreciated.
Thanks!
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To convert control's ID to control's window handle, use GetDlgItem(parentHWND, IDCONTROL) routine; GetWindow(GW_CHILD) returns the first child, whatever it is. When you get the handle, you can use SetWindowPos (or, simpler, MoveWindow) on it.
Jugoslav
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks !

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page