|
- How to get the HWND of the menu? (MDI or SDI based)
- Can you show me an example?
- Regards,
Maer
|
|
|
|
|
Menus aren't windows. If you need a menu handle (HMENU) call GetMenu() and pass it your main window's handle (AfxGetMainWnd() if you're using MFC).
--Mike--
http://home.inreach.com/mdunn/
#include "witty_sig.h"
your with and
|
|
|
|
|
- Thanks pal!
- Your reply clarifies my doubts.
- I still have a question. How to get the pointer of the menu? (I want to use "CWnd::SetFont" to set the font of the menu.)
- Can you show me an example?
- Regards,
Maer
|
|
|
|
|
Hi,
I am developing an application wherein I need rulers/guidlines just like the one in VC++ dialog editor. Can anyone please provide me some help as to how I should proceed for developing it?
Thanks,
Krishnan
|
|
|
|
|
My eyes just will not tolerate using the bitmap editor in visual studio. I would appreciate if anyone can recomend an editor that supports sizing and editing bitmaps for image lists. IE controls for 16 by 16x and increments.
Sorry for not logging in. The system just has not like my Name or address for the last few days.
Michael A. Barnhart - mabtech@swbell.net
|
|
|
|
|
I'll probably end up solving this before someone replies,but here is my problem:
I have an header that contains an array which contains the default setting for my app. I include the header into my main file, then include it into the cpp file for a class. The h file for the aforementioned class is also included by my main file. When I attempt to compile I recieve several multiply defined symbol errors. If I remove the inclusion from either file, the function that use the settings are unable to compile. If you can make heads or tails of my above statment, more power to you. Thanx.
Stephen Caldwell
Blackfission, CEO
http://bf.steffc.yi.org:81
[edit]Stupid Spelling Errors
|
|
|
|
|
INclude it in your stdafx.h
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
I`m only a beginner to this kind of stuff but I think you could also try (as an alternative to Christians suggestion) using these statements to go at the top of the header file of the implementation of your class :
#ifndef YOURCLASSNAME_H
#define YOURCLASSNAME_H
You should then be able to #include the header into the .cpp file, and then #include the header anywhere you want. (Just make sure you specify YOURCLASSNAME_H all in capitals, for some reason it won`t work otherwise)
AEGC
|
|
|
|
|
Then you also need a
#endif
in the bottom of the headerfile...
If you only need to compile it in VC, you can get the same effect with a
#pragma once
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
That you do, cheers for the reminder Anders.
AEGC
|
|
|
|
|
>(Just make sure you specify YOURCLASSNAME_H all in capitals, for some reason it won`t work otherwise
Rubbish. You can use any case or any text, you just need to make sure it is unique across your project.
Michael
|
|
|
|
|
I've done the
#if !defined(_CLASSNAME_H)
#define _CLASSNAME_H
...
#endif
for all of my header files.
Stephen Caldwell
Blackfission, CEO
http://bf.steffc.yi.org:81
|
|
|
|
|
The only reason I said that was because I encountered a problem when the class name was in any other case but upper, and I couldn`t find a solution to the problem. Its good coding practice anyway to use all uppercase as a naming convention when defining classes! Check Steves example out above!
Alan.
|
|
|
|
|
Hi all,
I wanna know, can i write program with MFC, and i run on Linux ?
Does Linux support MFC classes ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
No, I'm pretty sure that you can't use MFC with linux. You can however program using the win32 api on linux using Wine. Wine is an implementation of the win32 api for unix systems. You can read more about it at Wine Developement HQ.
Stephen Caldwell
Blackfission, CEO
http://bf.steffc.yi.org:81
|
|
|
|
|
MFC programs will work on Wine too. As long as the required MFC DLLs are there
Nish
|
|
|
|
|
Oh okay, cool. I have been enlightened.
Stephen Caldwell
Blackfission, CEO
http://bf.steffc.yi.org:81
|
|
|
|
|
Thanks for your help !
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 help !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Wind/U might be a solution for you: http://www.bristol.com/windu/.
Peace!
-=- James.
|
|
|
|
|
Thanks for your help !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Most probably: Yes.
Have a look at WINE.
Using this, I think you can even recompile MFC to use native "winelib".
/Mike
|
|
|
|
|
Hi all,
I'm using Win98 SE ...
I have multi language in my operation system, English and Arabic ...
I'm writing Dialog-based program with MFC ...
How can i change language from Arabic to English ?
Please write source code .
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I've seen that some app's use a BMP as menus background, how can i do this?
|
|
|
|
|
Owner-draw it.
You might find some samples here in code project
Nish
|
|
|
|