|
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
|
|
|
|
|
HWND is a handle you cant determine to which class it belongs too. You can somehow determine to which thread it belongs too.
Still Alive!!!
Thank you God.
|
|
|
|
|
Strictly saying, HWND cannot be "derived" from CScrollView , because HWND points to a Win32 entity, while CScrollView is a MFC class.
If you want to resolve, whether the window has scrollbars, use
if (GetScrollInfo(hWnd, ...) == TRUE)
Or, if you have the CWnd -class of the window, use simpler
if (wnd->IsKindOf(RUNTIME_CLASS(CScrollView)))
Robert-Antonio
"I launched Norton Commander and saw, drive C: on the left, drive C: on the
right...Damn, why I need two drives C:??? So I formatted one..."
|
|
|
|
|
if (wnd->IsKindOf(RUNTIME_CLASS(CScrollView)))
Tnat's all I need. Thank you very much.
Eugene Pustovoyt
|
|
|
|