|
Ok, I will try
Click Insert->Ressource
Click on Bitmap then the Button Import
Browse to you disired file (Mypicture.bmp) (if you could not see the file in the directory don't forget to chose all files (*.*) )
Now you have added a Bitmap Ressource from a file.
now you can use the methode i've copied
call it in the Dialogmethod OnPaint. You can add the OnPaint method with the aid of the classwizard. (The Message who calls this method is WM_PAINT)
I hope now that i could help you
otherwise ask again
Heiko
|
|
|
|
|
Hi Heiko,
I thank you for your help, it works!
Many thanks
|
|
|
|
|
i have an explorer bar that displays a web page (it hosts a WebBrowser control). i want to be able to react to events from the main internet explorer, in particular the navigatecomplete2 event. is there a way to do this?
thanks
melinda
|
|
|
|
|
|
Is it possible to create a string/char-array class with overloading operations that could preformed these operations?:
String = “Hello ” + “World”;
Where two constant strings/char-arrays “Hello ” and “World” adds and inserts into the String class. So that the class String will contain the string/char-array "Hello World".
Aidman » over and out
|
|
|
|
|
|
Yes I know... but it would be nice to know that this syntax is possible in pure C++
Aidman » over and out
|
|
|
|
|
Aidman wrote:
but it would be nice to know that this syntax is possible in pure C++
Yes, it is very much possible. You just have to overload the + operator and the += operator. In fact taking a look at the CString source might help you. There are also some very good non-MFC CString-type classes here on CodeProject.
Regards,
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
What do you mean by "pure C++"?
If I get your question, the answer is no, you cannot overload + to concatenate two char arrays. At least one argument must be a user-defined type.
--Mike--
THERE IS NO THERE IS NO BUT THERE IS
MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT
Homepage | RightClick-Encrypt | 1ClickPicGrabber
"You have Erica on the brain" - Jon Sagara to me
|
|
|
|
|
Michael Dunn wrote:
What do you mean by "pure C++"?
What I mean is if it possible to create a class with C++ syntax (non-MFC) that could preform exactly the following operation: String = "Hello " + "World";
Michael Dunn wrote:
If I get your question, the answer is no, you cannot overload + to concatenate two char arrays. At least one argument must be a user-defined type.
But can cString preform this operation?
Meaning can cString do this?: String = "Hello " + "World";
If so then why can cString do it and not a custom class?
Aidman » over and out
|
|
|
|
|
Aidman wrote:
What I mean is if it possible to create a class with C++ syntax (non-MFC) that could preform exactly the following operation: String = "Hello " + "World";
No, read my previous post again for why this is not possible.
--Mike--
THERE IS NO THERE IS NO BUT THERE IS
MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT
Homepage | RightClick-Encrypt | 1ClickPicGrabber
"You have Erica on the brain" - Jon Sagara to me
|
|
|
|
|
Ok, but can cString preform this operation?
Aidman » over and out
|
|
|
|
|
|
Ok Thanks
Aidman » over and out
|
|
|
|
|
I have a toolbar control with a multi-line edit box. The buttons in the same toolbar however are not aligned in the middle of the toolbar. It stays the top. When the size of the band is bigger than a button's height, it doesn't look very elegant. But if you look at IE toolbars, like the Address bar, when its height is bigger, the Go button stays in the middle.
Does anybody know how to do that?
The toolbar is similar to the one described by
http://www.codeproject.com/atl/ietoolbartutorial.asp
Thanks.
|
|
|
|
|
This is kind of off-topic so....
What is the prefered background color in order to reduce the strain on the eyes. The setting goes through properties->appearance... (just to clarify what I mean) under MS Win (or maybe under VC properties).
Maybe each and one of you have different prefered color but is there a standard for this
Sorry about the lousy English.
-----------------------
Go USA Go
|
|
|
|
|
|
I use light grey. It seems very easy on the eyes.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
If you use system colors, you can let the user decide.
|
|
|
|
|
I've heard blue and yellow are the 2 easiest colors on the eyes...
I have an 1984 Suzuki RM80 dirtbike and those are it's primary colors. I've always thought it was easy on the eyes.
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
Hockey wrote:
I've heard blue and yellow are the 2 easiest colors on the eyes...
I have an 1984 Suzuki RM80 dirtbike and those are it's primary colors. I've always thought it was easy on the eyes.
Laughin so hard I almost fall off my chair
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
I think you're asking about what colors to set in the IDE itself? I prefer white text on a black background.
--Mike--
THERE IS NO THERE IS NO BUT THERE IS
MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT
Homepage | RightClick-Encrypt | 1ClickPicGrabber
"You have Erica on the brain" - Jon Sagara to me
|
|
|
|
|
That's what i meant. Thanks, I'll try both suggestions.
-----------------------
Go USA Go
|
|
|
|
|
the best would be to select dull colors like grey , or even black in the background would do fine .
|
|
|
|
|
hi all,
How to create menu shortcuts in a vc application. I am using dialog based application. I tried out accelerator, but it is not working. Can any one help me...please.
Mahesh
|
|
|
|