|
Output content it in the Office xml file format, which is documented.
Otherwise, buy third party Word generators out there (http://www.pparadise.com/index.pasp[^])
MS quote (http://www.microsoft.com/ddk) : As of September 30, 2002, the Microsoft® Windows® 2000 DDK, the Microsoft Windows 98 DDK, and the Microsoft Windows NT® 4.0 DDK will no longer be available for purchase or download on this site. Support for development will ship at the same time as the Windows XP Service Pack 1 (SP1) release.
|
|
|
|
|
I created several CDialog with CreateIndirect calls. The dialogs are of style WS_CHILD|WS_VISIBLE|DS_FONT. They are created fine, but say, in my tab, it has 3 pages (3 dialogs), the 3rd dialog is covering the 2nd dialog, which is covering the 1st dialog ?
How can I hide the inactive dialog ???
I don't find any SetVisible() method in CDialog.
Thanks
|
|
|
|
|
call ShowWindow(SW_HIDE) and ShowWindow(SW_SHOW).
|
|
|
|
|
Thanks very much, but i have another problem in changing showing and hiding the dialogs.
When a tab is selected, it's refected notification TCN_SELCHANGE, so i handle it to make the selected dialog visible.
The header is like this, but i don't know how to get the information about selected tab.
I tried to write:
void CTabPageView::OnTcnSelchange(NMHDR *pNMHDR, LRESULT *pResult)
{
TCITEM pitem;
int cursel = GetCurSel();
if (cursel != -1)
{
GetItem(cursel, &pitem);
UINT dlgId = pitem.lParam;
}
}
However, in this case, i got the lParam of 0 instead of the stuff i put in before for creating the tabs.
|
|
|
|
|
GetItem() only works if you have set the correct mask in the TCITEM structure.
eg. to get back the lParam you must set:
pitem.mask = TCIF_LPARAM;
|
|
|
|
|
I made a class in VC++. This class is derived from some MFC class. e.g: class myclass:public CDialog .
Now i want to use the objects of myclass in various applications. I also want to derive new classes from myclass and implementing its virtual functions in derived classes e.t.c
But i want to reuse this class in my Visual Basic applications. Is it possible ??? What kind of DLL i need to make ??? Is it possible using COM ??? Or what else the solution ???
|
|
|
|
|
|
Nishant S wrote:
The easiest and probably best approach would be to write an ATL component
Is it guaranteed that such ATL compopnent will be used easily by VB because, I am deriving my class from MFC class, CSocket ??
Secondly, instead of using ATL approach , if use COM hardcore approach. Then will there be any difference using COM or ATL ???
|
|
|
|
|
Anonymous wrote:
Then will there be any difference using COM or ATL ???
Yes, if you don;t use ATL, it will take you longer.
Any ATL component will work with VB.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Cats, and most other animals apart from mad cows can write fully functional vb code. - Simon Walton - 6-Aug-2002
|
|
|
|
|
Hi all. I am trying to use _rmdir under WindowsXP to delete some folders. But I can´t and all I get is an errno = 13. Does anyone knows what does this mean? It doesn´t fit in what the documentation tells the errno values could be. Thanx...
Rodrigo
|
|
|
|
|
|
Hi all,
I'm writing a program (MFC) that connect to a SQL Server to manipulate the data. But I dont know which technique is the best in this situation, use ADO or something else ??? Which control should I use to display the data from SQL Server ?
Thanks alot
|
|
|
|
|
I use ADO for all my SQL Server data applications. A simple combination of AdoConnection, AdoCommand and AdoRecordset. I then display the data in standard Windows Controls (ListView, Edit, ListBox etc)
Most of my command objects use Stored Procedures to retrieve the data.
Michael
Programming is great. First they pay you to introduce bugs into software. Then they pay you to remove them again.
|
|
|
|
|
Hello,
I can transfer an image from a Canon digital camera with IWiaDataTransfer::idtGetBandedData but fail with IWiaDataTransfer::idtGetData. However, with a Kodak EasyShare I can use IWiaDataTransfer::idtGetData but fail if IWiaDataTransfer::idtGetBandedData. Then I try to use IWiaDataTransfer::idtGetBandedData then IWiaDataTransfer::idtGetData if IWiaDataTransfer::idtGetBandedData failed, the IWiaDataTransfer::idtGetData fails. Do you know why?
Thanks!
|
|
|
|
|
Hello there,
I want to change the Bitmap Button when i'm moving mouse cursor on the button ...
How can i do that ???
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
|
Thanks for your helps
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
If you want to save yourself the programming, try one of the various button controls available at CP's MFC Button Control articles[^] which provide hovering facilities.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks for useful articles and tutorials
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Is there a way to find the length of a CString in pixles?
There's always one more bug.
|
|
|
|
|
|
thx
There's always one more bug.
|
|
|
|
|
The EnumFontFamProc function uses all of its parameters as "input" parameters. The third parameter, 'nFontType', however, has me a little baffled because nowhere prior to it being used, is it initialized.
Therefore my contention is that the test conducted, using 'nFontType' is invalid because it doesn't contain valid data (at least that's what I would like to think), but the program works.
If there's a mystery here, could someone explain it to me. Thanks!
Below is sample code of what I'm talking about.
==========================================
int CALLBACK CMainWindow::EnumFontFamProc(ENUMLOGFONT* lpelf, NEWTEXTMETRIC* lpntm, int nFontType, LPARAM lParam)
{
CMainWindow* pWnd = (CMainWindow*)lParam;
if((pWnd->m_wndCheckBox.GetCheck() == BST_UNCHECKED) || (nFontType & TRUETYPE_FONTTYPE))
do something etc;
etc.
}
===================================
This is the call that activates EnumFontFamProc.
::EnumFontFamilies((HDC)dc, NULL, (FONTENUMPROC)EnumFontFamProc, (LPARAM)this);
William
|
|
|
|
|
nFontType is a DWORD which is a combination of :-
DEVICE_FONTTYPE, RASTER_FONTTYPE, TRUETYPE_FONTTYPE
or it could be 0. In your case you are doing a boolean check on (nFontType & TRUETYPE_FONTTYPE ) which will be TRUE only if the TRUETYPE_FONTTYPE bit is set. And there is nothing peculiar about your code either.
Regards,
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Where does 'nFontType' get set to be a combination of the various *FONTTYPE*? Does it get set by the function that activates EnumFontFamProc?
Because it's used as an input parameter, it had to be initialized somewhere and by something!
Thanks!
William
|
|
|
|