|
hi all,
I am reposting the question, How do i enable/disable the menu items like File->Open ,File->Save As in Internet Explorer and other menus items.
Here is what i am going
-Get handle to IE Window
-Find the WorkerW Window
-Get the RebarWindowHandle
-Get the Toolbarwindow32 handle
After spying the IE window I come to know that MenuBars in IE window is hosted by window with a class name "ToolbarWindow32".
The problem is spy shows three ToolBarWindow32 windows all of them having the same parent window i.e "RebarWindow32".
1.How do i identify the window which host Menubars.
2.After getting the window handle is it possible to send the windows messages to the menu.
3. Is there any way of doing things in better way.
Can somebody help.
Thanks in Advance
Abhi
|
|
|
|
|
IE employs rebar to that extend that even the menubar is also a rebar.
Still Alive!!!
Thank you God.
|
|
|
|
|
i'm making a program to read data from file and display it. i tried to insert the activeX control "microsoft datagrid control 6.0" to display data. but how do i access each cell of grid to assign member variable to update data onto the grid? or what address of each cell?
|
|
|
|
|
catngo wrote:
i tried to insert the activeX control "microsoft datagrid control 6.0"
You mean the Microsoft FlexGrid Control?
If yes, you can set text into a cell using the SetTextArray(long index, LPCTSTR lpszNewValue) funtion.
Cell index start from 0 and it goes from left to rigt (and then to the next line).
Hope this helps.
|
|
|
|
|
no, it said Microsoft Datagrid Control 6.0 . but i also see Flexgrid in the chooses. any grid will work, i'll try insert the flexgrid and see how it work. thank you.
|
|
|
|
|
sorry, i'm a noob here. can you be more detail on this? okay, let say i want "mom" in cell B2. how the code goes?
|
|
|
|
|
Ok. In quick, here is a picture of the indexes of the cells (for a 3X3 grid):
Col A Col B Col C
Row0 0 1 2
Row1 3 4 5
Row2 6 7 8
So, if you want to put "mom" in cell B2, you'll have to write:
m_Grid.SetTextArray(6,"mom");
6 is given by: RowIndex * Number of column + ColIndex
(In your case: RowIndex=2, ColIndex=0)
|
|
|
|
|
Okay, this what i use:
CMSFlexGrid FlexGrid;
FlexGrid.SetTextArray(2,"mom");
got an "assertion failed" error.
|
|
|
|
|
got it, thank you much. i was trying to access the class function instead of variable member control. that how i got the error msg, it work now.
|
|
|
|
|
One last question, is there anyway to print the grid with data out just like excel?
|
|
|
|
|
In which format sends Word the images to the clipboard? Because in clipboard when I choose Dispaly the only options available are Auto and Picture.
Thanks,
Adriana
|
|
|
|
|
I would be inclined to copy something from Word, and then call EnumClipboardFormats() to figure out what formats were currently on the clipboard.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
OK, but I want to copy pictures from Word.
|
|
|
|
|
While in Word, right-click the picture and select Copy from the context menu.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Yes, I know this, but I cannot copy the image in my rtf editor which is a dialog box based app.
|
|
|
|
|
|
I have a program which load the child dialog first as in LOGIN screen. then, transfer user info to the main program. the problem is if user decide not to login and press the cancel button, the child dialog will exit but still load the main program. what function do i put in the cancel button to terminate the program? i tried to use DestroyWindow(), it will exit program but also give application error. any help?
|
|
|
|
|
Use PostQuitMessage .
Robert-Antonio
"A flower walked around a meadow. She saw a beatiful human and plucked off his head."
|
|
|
|
|
Thank you much! btw, the main program shadow still flash before exit. any idea to fix this?
|
|
|
|
|
What type of application are you using ? SDI/Dialog based ... ?
In the case of the SDI application, you can show the child dialog in the OnNewDocument function and if the user selected cancel, return FALSE in this function. This will not load the document and will exit automatically the program.
|
|
|
|
|
i'm using MFC dialog base
|
|
|
|
|
Hi
Is there any way by which i call adobe plugin *.api files in my vc application and call its functions.
|
|
|
|
|
I don't think so. Because Adobe provides SDK mainly for creating plugins for adobe acrobat itself. Only Acrobat is able to know/process the exported functions in the *.api files. I think acrobat SDK doesnot provide any API to process the exported functions in *.api which we can use from our own applications.
...always be cool
|
|
|
|
|
Actually I have loaded the *.api file by changing its name to *.dll. I got a pointer to first function ( called in the plugin by acrobat) PlugInMain().
The difficulty is that I dont know wat the parameters ?
Any help will be greatly appreciated..
Thanks in advance..
bye
|
|
|
|
|
Whether how to know belongs HWND to CScrollView or to a derivative class?
Best regards,
Eugene Pustovoyt
|
|
|
|