|
Removing the system menu shouldn't remove the caption. Have a look through your options in the dialog editor, and see if you've changed the dialog from popup to child, or something. It's a drop box on the left of one of the tabs.
To change the icon, just change the icon for the program, it's a resource. To do more you need to handle WM_NCPAINT.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
how do you draw "triangle with lines at right-bottom" of resizeable dialog (without status-bar)?
resizeability is not enought
i afraid to draw it own way to keep compatibility with possible skins or new system versions
t!
|
|
|
|
|
Try looking for resizable dialog classes on codeproject or codeguru and try comparing them to resizable 'skinned' projects. I created a skinnable dialog box that resizes so it is possible.
.NET or not .NET? MFC is the question......
|
|
|
|
|
It's part of a status bar. See CStatusBar in MSDN and also try building an MFC Appwizard SDI application. It has a status bar with a Gripper (as it's called) by default.
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
If you need the gripper without a status bar, you can create it; it's a style of the Scrollbar control. Never tried to use it this way myself though, or even seen it used, so can't tell you how it works.
If you just want to draw it, you can use DrawFrameControl() to do so:
<br />
::DrawFrameControl(hDC, &rect, DFC_SCROLL, DFCS_SCROLLSIZEGRIP);<br />
...You can use ::GetSystemMetrics(SM_CXVSCROLL); and ::GetSystemMetrics(SM_CYHSCROLL); to get the correct width and height.
farewell goodnight last one out turn out the lights Smashing Pumpkins, Tales of a Scorched Earth
|
|
|
|
|
I am developing an app that will read an XML file from a standard web server and use its contents as variables in a dialog based app. I will be using it to read member profiles. There will be a separate XML document for each member using the following XML tags.
<name>Joe Bloggs</location>
<age>24</age>
<location>England</location>
and these will be displayed in the dialog as:
Name: Joe Bloggs
Age: 24
Location: England
The field names are labels in the dialog and the variables are taken from the XML document.
The idea of this is to be able to update user profiles myself without having to re-distribute the app or use a HTML web page control.
Andy ideas would be gladly appreciated.
.NET or not .NET? MFC is the question......
|
|
|
|
|
Take a look at CPs XML/Soap-corner!
mfg HintiFlo
|
|
|
|
|
I'm sort of playing around with the same stuff right now. You need to use a parser and that sort of means MS's parser. You might take a look at the following site:
http://www.earthweb.com/article/0,,10455_629271,00.html
It contains about as much useful information as I've found so far. As usual the MSDN documentation for the C++ side is very sparse.
Let me know what you find out.
"Thank you, thank you very much" Elvis.
|
|
|
|
|
Here's another link:
http://p2p.wrox.com/content/comdev/ie5xml.asp
Also, after looking a little more closely at MSDN it is a little more thorough than I thought at first. The "XML Dom Methods" section under the XML section (Platform SDK Documentation/Data Services/XML...) should be enough to get you started. I'm up and rolling now.
"Thank you, thank you very much" Elvis.
|
|
|
|
|
Hello ,
Did anyone use the SetMenuInfo API?
I want to use it in a MFC project but all I get is:
'SetMenuInfo' : undeclared identifier message
So can you please tell me what should I include or define or what ...
Thanks!
Best regards,
X3m
|
|
|
|
|
Note: MFC already provide ModifyMenu function that can do what you want.
In case you still want to do it Yourself, here's an example:
BOOL ChangeMenuText(LPTSTR szText, UINT nID, CMenu* pMenu)
{
MENUITEMINFO mii;
memset(&mii, 0, sizeof(MENUITEMINFO));
mii.cbSize = sizeof(MENUITEMINFO);
mii.fMask = MIIM_STATE|MIIM_TYPE;
mii.wID = nID;
mii.fType = MFT_STRING;
mii.dwTypeData = (LPTSTR)szText;
mii.cch = _tcslen(szText);
return ::SetMenuItemInfo(pMenu->GetSafeHmenu(), nID, FALSE, &mii);
}
- God bless the World
|
|
|
|
|
Thank you!
Best regards,
X3m
|
|
|
|
|
|
Where is it?
Best regards,
X3m
|
|
|
|
|
Can you please tell or point me to some information about writing a CBitmap which I create in my app to a .bmp file
Thank you in advance
|
|
|
|
|
Check the Bitmaps & Palettes section here at CodeProject. There's a couple of articles that do what you want.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Are there any demos that show how a SDI program like Macromedia Dreamweaver uses multiple windows. I.e. for every new ducument a new window is opened. I have tried to implement my own attept at this and all i get is the one window that opens all documents.
.NET or not .NET? MFC is the question......
|
|
|
|
|
I'm not sure I've understood your question. If you use SDI, then by design a different app instance is launched every time you double click on a document. Could you please be more specific?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
What i mean is, The app i use has a splash screen and a few other startup features. what i want is a way of creating a new windows from the File>New menu item and when another document is opened while the app is still running.
.NET or not .NET? MFC is the question......
|
|
|
|
|
I see... Well, I have no idea myself, but I found this Usenet article that might be of help to you. Good luck!
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hello,
I've got a very simple decision to your problem
Here it is:
void CYourView::OnFileNew()
{
WinExec(AfxGetAppName(),SW_SHOWNORMAL);
}
Add a handler of ID_FILENEW menu from the classwizard in your CView derived class with the above code. Enjoy!
Best regards,
X3m
|
|
|
|
|
now the app keeps re-opening itself and required the PC to be turned off. Is there a way of just re-initialising the main window each time and not the app?
.NET or not .NET? MFC is the question......
|
|
|
|
|
Are you sure you handle OnFileNew in your CView and not in your CMainFrame or CWinApp class?
I have a working code of this if ou wan't I can email it to you?
Best regards,
X3m
|
|
|
|
|
yes if you would do so that would be great. jonathann4@hotmail.com
.NET or not .NET? MFC is the question......
|
|
|
|
|
I sent it to your email.
Best regards,
X3m
|
|
|
|