|
Zafir did something similiar years ago with the CTreeCtrl and CTreeView. Check out CodeGuru. It's not 100% the same, but I did get his to work at one point when working with listview/listctrl so I know it can be done.
Sorry to not be more specific. But it's definitely not trivial and at least will point you in the right direction.
Cheers,
Tom Archer
Inside C#, Extending MFC Applications with the .NET Framework
It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson
|
|
|
|
|
Tom Archer wrote:
Zafir did something similiar years ago with the CTreeCtrl and CTreeView.
Ok Tom, I know this is off the subject here, but does anyone know what happened to Zafir? What is he doing now?
-Nick Parker
|
|
|
|
|
|
Tom Archer wrote:
FWIK, he took his millions and went back to India.
Pretty much disappeared from the Internet altogether huh? I guess I find that a little odd when it looks like he initially contributed so much, not to say others didn't.
-Nick Parker
|
|
|
|
|
I know what you mean, but everyone is different. Obviously the main thing he cared about was the $$. Out of the millions he made on the site, Maunder and I asked that he give a small amount to the various section heads. We're talking maybe 10k here - not something unreasonable for the peopl that made him rich. He never even responded and eventually just disappeared.
Cheers,
Tom Archer
Inside C#, Extending MFC Applications with the .NET Framework
It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson
|
|
|
|
|
|
|
This is the only way I've been able to use a derived CListCtrl with a view in the past. However, I just tried to use it and it 1) doesn't compile without some tweaks and 2) asserts all over the place.
http://www.codeguru.com/listview/ctrl_vs_view_undoc.shtml[^]
I'm thinking your only choice is something very manual, where you use a FormView, subclass the list control with your derived class and then manually handle sizing issues.
Cheers,
Tom Archer
Inside C#, Extending MFC Applications with the .NET Framework
It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson
|
|
|
|
|
how do you get the find box with the find next button to stay on top even after you've pushed the find next button, There's no pin to keep it there.
I've been wondering this for years now, thanks.
|
|
|
|
|
Do you really need it? F3 will take you to the next match.
|
|
|
|
|
i know, but I like clicking the button, not to mention F3 won't leave the box open to change the text.
|
|
|
|
|
Use the Replace box instead! For some reason, the Find Next button in this dialog doesn't close the dialog.
|
|
|
|
|
I'm trying to put text into an MFC CToolBar, and am having problems with end of my tool bar getting cut off. What's happening is that app is computing the size of the toolbar WITHOUT the text, just the width of the icons/separators, so the toolbar ends up too narrow.
I'm using Visual Studio 6.0 SP5, with IE6.0 installed on my system. Here's the code I am using:
<br />
DWORD dwExStyle = TBSTYLE_EX_DRAWDDARROWS|TBSTYLE_EX_MIXEDBUTTONS ;<br />
tbar.GetToolBarCtrl().SendMessage(TB_SETEXTENDEDSTYLE, 0, dwExStyle);<br />
<br />
int index = CommandToIndex(IDM_CALCULATE);<br />
WORD dwStyle = tbar.GetButtonStyle(index);<br />
dwStyle |= BTNS_SHOWTEXT|BTNS_AUTOSIZE; <br />
tbar.SetButtonStyle(index, dwStyle);<br />
tbar.SetButtonText(index, "Calculate");
Some info: BTNS_SHOWTEXT is NOT defined by the MFC/Win32 header files that are installed on my system. I had #define BTNS_SHOWTEXT 0x40 to get this to work. I found many references to it on MSDN, and google'd for its value. I understand it will only work on systems that have IE5.0 or better.
What I'm guessing is that the MFC CToolBar implements the CalcSize function using assumptions about IE4.0; rather than calling CToolBarCtrl::GetItemRect, its assuming the size of each icon by using its bitmap size + padding. The BTNS_SHOWTEXT option is new and the circa 1998 (IE4 was just released) MFC just doesn't know to deal with it.
Thing is, I can't find any threads or discussions on what to do in this situation. I can't find a place to download a set of Win32 headers that match the new ComCtl32.dll v5.8, or any sort of MFC patches to expore the v5.8 functionality to VC6.0
Any help would be greatly appreciate. I can't switch to VC.NET (as much as I'd love to) because my company likes to drag it's feet when it comes to upgrading development tools.
|
|
|
|
|
I wouldn't be surprised if your assessment is right, considering that MFC 6 is so old and pre-dates even IE 5.
As for getting the newest headers, download the Platform SDK (see the VC forum FAQ for details on doing this)
--Mike--
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--=
NO CARRIER
|
|
|
|
|
Michael Dunn wrote:
considering that MFC 6 is so old and pre-dates even IE 5
Do you happen to know if the MFC that ships with VC.NET has been imrpoved (updated) to expose more of the new ComCtl32 features? Maybe not this problem specifically, but how about images in CListCtrls or the new thumbnails view, etc.
Even more off-topic, is this one of the reasons everyone seems to be using WTL now a days?
|
|
|
|
|
Hi there!
I 'm writing a project that converts MSO file content int to my own language ( Vietnamese). But I don't know how to read and write to them. Is any body help me?
Thanks
Jason Chang
tmsnhien@yahoo.com
|
|
|
|
|
Each Office application exposes a COM interface. Using automation, you should be able to do what you need.
|
|
|
|
|
Thanks for reply!
May you say more clearly please. I know that this problem can be solved by COM. I know "Excel?.Dll" "MSWord*.dll" can use for programming. But I don't know all of its function. And how to open MS Office file without opening MS Office Application.
Thanks
Jason Chang
tmsnhien@yahoo.com
|
|
|
|
|
Check out MSDN article Q178749.
|
|
|
|
|
How do I group Radio buttons using the Resource Editor?
|
|
|
|
|
in the dialog editor window thingy where you see the radio buttons, edit boxes, etc, right above the radio box is the Group Box Function. use that, and change the status of "Group" in the radio buttons properties to TRUE for the first radio button in the group.
if that makes any sense.
*.*
cin >> knowledge;
|
|
|
|
|
Thank You,
But their is not "Status" option in Visual Studio 6 Resource editor. Your help did show me the way. Select "Group" for the first control in the group and not selected in subsequent controls.
|
|
|
|
|
a group of radio buttons is defined by tab order, in which the first one has the "group" (and "tab stop"?) check box checked in the properties for the first checkbox button in the group you want to have.
It's not a visual group, more a logical grouping.
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
bonjour
j'aimerais bien savoir est ce que la fonction " load fromfile" existe en vc++?
|
|
|
|
|
pardon ? je comprend pas, peux-tu mettre en contexte ? load quoi ? et dans quoi ?
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|