|
What property should a dialog box have so i can move it around while the title bar is pressed ?
Thanks
|
|
|
|
|
lol!?
this is a property of a normal dialog!
Don't try it, just do it!
|
|
|
|
|
...but it's not working!
|
|
|
|
|
another interesting thing is that the dialog caption isn't shown!!
|
|
|
|
|
Use the resource editor to show the caption. Make sure title bar is selected in the styles.
John
|
|
|
|
|
r u doing some heavy duty processing in the OnInitDialog() function so the window isnt responding to messages?
"there is no spoon" biz stuff about me
|
|
|
|
|
Actually, I think the dialog is shown after OnInitDialog() completes. But the point is well taken.
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
How would I structure an application that needs two main views with a splitter bar. The left view would be a tree view, right view would be a list view.
I'm having hard time figuring out how many documents I need and how to initialize the whole thing in CApp::InitInstance (i.e. do I use a SingleDocTemplate or a MultiDocTemplate?).
It occurs to me that this is exactly like IE, anyone know of some good sample code out there?
Mike Ellertson
|
|
|
|
|
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.
|
|
|
|