|
![]() |
|
|||||||
| Plugin Development Extend the functionality of Centrafuse by developing plugins |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie - Zero Capacity
|
redrawing plugin skin over an external app embeded in plugin
I am creating a plugin for iguidance in CF, I have been successfull in creating a plugin that loads ig, kills the nag screen and makes ig a child window and places it neatly in the plugin area. I want to have the menu bar on the skin of my plugin show ontop of the top part of the child ig window so that I can put cf controls there to send vkeys to ig.
I am using winAPI's MoveWindow() function to ajust the position of the ig window in the plugin and i want to hide the ig menu bar under the plugin titlebar. for example if I use: MoveWindow(mywindow, -2, -40, this.Width +2, this.Height +40, true) the result is that the ig menu bar is off the top and the window boarder off the sides and out of sight. if i canged the -40 to +51 then the ig winodw would apear below my skins menu bar but the ig menu will still be visible. hope this makes sense, anyone have any ideas? |
|
|
|
|
|
#2 (permalink) |
|
Newbie - Zero Capacity
|
Progress
I have been able to get alittle more working, sorry my question above was alittle vague.
I have been able to circumvent the problem by embeding iguidance into a windows panel control and then embedding the panel into cf. The reason i chose the panel control is that i could not find a CF control that would take a IntPtr. Is there a way to do this? as it would solve part 2 below, and allow the control to have its sizes changed in the skin file. Part 2: Assuming that i cannot use a CF control and must use the windows panel, how do i resize the panel when skin size changes? Any thoughts on the methods i am using to solve the problem are welcome, even if you think i am going about this entirely wrong, I am sorta winging it, and might have missed a better way. here is a screenshot ![]() Thanks in advance, Brian |
|
|
|
|
|
#3 (permalink) |
|
Administrator
Join Date: Oct 2004
Location: Atlanta, GA
Posts: 4,587
![]() |
You would want to use a Panel or PictureBox, not a CF control for the embedding... CF controls are nothing more than structs with custom painting...
Look at the web browser for an example... you have a Height and Width Ratio made available to you. You multiple your X,Y,With,Height of the panel by the ratio, which will automatically be calculated for you... david |
|
|
|
|
|
#4 (permalink) | |
|
Newbie - Zero Capacity
|
Quote:
Will checkout the web plugin, wish i had thought of that sooner, you are probably embedding explorer. :roll: |
|
|
|
|
|
|
#6 (permalink) | |
|
Newbie - Zero Capacity
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|