|
Do you need to display multiple sets of data? By this I mean: Do you need to display a left and right pane for multiple sets of data at the same time. If yes then this would lead me to believe that you want MDI. If no (you will only ever need to display one left pane and one right pane) then I would believe you want SDI.
Is assumed that your tree view loads from one set of data and the right view (list view) displays a sub set of the data in the tree view but in greater detail.
Hope this helps
|
|
|
|
|
Your assumption was correct. Thanks this does help a lot!
In my CWinApp::InitInstance() I have the following code to attach the document class to the CListView derived class (view on right side of splitter):
CWinApp::InitInstance() {
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CClientDoc),
RUNTIME_CLASS(CMainFrame),
RUNTIME_CLASS(CClientView));
AddDocTemplate(pDocTemplate);
}
How do I attach my CTreeView derived class(left side of splitter) to my document class? I'd like it to be able to redraw itself when the document is updated.
Mike Ellertson
|
|
|
|
|
What does it mean? and why it happens?
thanks
|
|
|
|
|
Name mangling is done so you can overload methods/functions.
Example:
int max( int, int );
long max( long, long );
float max( long, long );
The compiler might do something like:
int max_int_( int, int );
long max_long( long, long );
float max_float( float, float );
This way in your code, you can just call max with one of the three different parameter types. The compiler makes the mangaling a lot more complex than the example.
Hope this helps.
Larry
Larry J. Siddens
Cornerstone Communications
TAME THE DOCUMENT MONSTER
www.unifier.biz
|
|
|
|
|
|
Larry J. Siddens wrote:
The compiler makes the mangaling a lot more complex than the example.
A lot more cryptic also...
John
|
|
|
|
|
I need to write an app that runs on a Windows-CE device (pocket PC)
Do I need to blow away my current OS (Windows 98) and risk losing all of my video games, device drivers, etc, etc just to install Windows XP just so I can buy .NET?
Or can I compile Windows CE apps using VC++ 6.0?
|
|
|
|
|
You can download "eMbedded Visual Tools 3.0 - 2002 Edition" at this web site below. Read the system requirements towards the bottom of the page.
Depending on what you want to do, you might need to install NT4 SP5 or XP. You will need NT 4 or XP to run the ce emulator.
http://www.microsoft.com/downloads/details.aspx?FamilyId=F663BF48-31EE-4CBE-AAC5-0AFFD5FB27DD&displaylang=en
Good luck.
|
|
|
|
|
100%!
Thank you very much
|
|
|
|
|
Hi,
I have a MDI program, and I would like to cover the view screen at the startup; Meaning, at the startup I only want the toolbar and menu bar to be shown
Ehsan Behboudi
|
|
|
|
|
like this in InitInstance:
// DON'T display a new MDI child window during startup!!!
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
if (!ProcessShellCommand(cmdInfo))
return FALSE;
|
|
|
|
|
where do I add the code?
should i add it in PreCreateWindow(CREATESTRUCT& cs) ???
Ehsan Behboudi
|
|
|
|
|
how do I add Initinstance
Ehsan Behboudi
|
|
|
|
|
How do I add macros to an application? I would like to add macros like in excel (VBA style). I dont want code. I just don't know where do I look or what to look for.
Matt Sidare
|
|
|
|
|
|
|
Hi,
Does anyone know how if I can make a CView a fullscreen window without also making the CMainFrame fullscreen.
Until now I've had a single SDI view which I could make fullscreen by hiding toolbars and windows furniture on the CMainFrame class and then maximizing the window - a technique which is well described in numerous usenet postings. I now have a split main view and of course the full screen window shows both views rather than a single pane.
I've messed around with the use of a separate fullscreen CWnd that shares the same drawing code as the view embedded in the splitter. This works quite well but starts to get messy when you consider things like key accelerators which are normally maintained by the CMainFrame class to which it has no connection. Also, command handlers which are currently part of the view will have to be into the CMainFrame which I don't particularly want to do.
Thanks,
Jason.
Displaced Aussie. London based - soon to be Melbourne bound again.
modified 10-Jul-19 21:02pm.
|
|
|
|
|
A CView lives within a frame window, so the answer is "you can't". However, you could create a modeless child of the mainframe that occupies the entire screen.
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Say I have a truncated string (Like thi...) in a column of a CList control. What do I need to wire up to display the full string in a tooltip?
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
There is a tooltip control which is wrapped in MFC by CToolTip. There is all sorts of articles about using both of them here and on MSDN.
"No matter where you go, there your are..." - Buckaoo Banzi
-pete
|
|
|
|
|
I'm using a program (abc2midi) to create midi files, but I can't see the title, author and other information about the file when I play it with common midi or karaoke midi players. I downloaded a copy of the midi standard. Just wondering if there is a specific flag most common midi programs look for in order to display title, author and related information or if different midi programs do so differently. Are there any tools out there for adding title, author and so on to an already created midi file?
Basically, I'd like to get title, author, source and historical information to display on as many midi players as possible when the file is played. Any suggestions on how to go about editing a midi file to accomplish this.
Thanks.
Laura
http://groups.yahoo.com/group/cppdesign
|
|
|
|
|
Hi friends, I am trying to write JPEG parser/decoder. Does anybody know any good website to get info, specs for this project? I am specifically interested in finding resolution of JPEG right now. Thanks for help.
|
|
|
|
|
Try IJG library (intel jpeg libraray)
Jonathan de Halleux.
|
|
|
|
|
It looks like a great resource.. I am having little problem trying figure out the resolution tag.. Know what it is? I'd like to know what pixel/inch is used for the file.
|
|
|
|
|
I am wondering how to detect and block ping(ICMP packet) by programming ?
Is there anybody got the code? I need it!
Sincerely.
brapler
|
|
|
|