|
Hi Nishant,
Please forgive my "newbiness" if you will, but is there another way to make this so that you don't have to do the whole CDialog thing? The reason I ask is because there's another class that I'm already using that requires this.
Thanks in advance,
Don
|
|
|
|
|
|
It's the well-known CResizableDialog
class from Paolo Messina. If not that one, one similar, but they too require that you find and replace all instances of "CDialog" in the header and source file.
I'm building a skinnable Winamp sort of application and it seems like every class I find that would be useful, without having to re-invent any wheels that is, requires the same thing.
I guess there's a way to bundle up all of these classes into one source, and just make sure that there's no duplicate function names/variables, etc., and have them all derived from the same base? I'm sure it's possible, but I'm new to C++, not programming, just this language, which seems to be a little like going from Pig Latin to Japanese.
Having said that, any further details/advice that you can give me on this endeavor will be tremendously appreciated.
Cheers,
Don
|
|
|
|
|
Thank you very much!
<marquee behavior="alternate">Hosam Aly Mahmoud
|
|
|
|
|
I want to strech/tile/center a bitmap across the background of my CEdit/CRichEdit ctrl (like a watermark)..can somebody help?
|
|
|
|
|
How I change the bg color of a Static control (on the dlg) to the color of the bitmap ?
|
|
|
|
|
|
erm this doesnt work in VC 6.0
and your "demo" executable wants MFc7.0 dll
Bryce
|
|
|
|
|
bryce wrote:
and your "demo" executable wants MFc7.0 dll
Yes, it was built using VC++ .NET
bryce wrote:
erm this doesnt work in VC 6.0
The source files will work in either VC++ 6 or 7
The class source files I mean
But the sample project is a VC++ 7 project
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
|
|
|
|
|
One thing that is almost always missing from these kinds of options (including that of the Windows Desktop) is the option to stretch with maintaining the aspect ratio. That would make a great additional feature.
Tim Lesher <tim@lesher.ws>
http://www.lesher.ws
|
|
|
|
|
Hear! Hear!
William
|
|
|
|
|
Tim Lesher wrote:
the option to stretch with maintaining the aspect ratio
But then it won't fill up the area, will it? What do we do with the extra space?
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Easy. You center the bitmap and put a user selected colour in the additional space. And you provide an option for aspect ratio correctness so you lose some data rather than gain some space.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
Umm, yeah, what he said. Actually, I hadn't considered the option to crop instead of fill, but that sounds good, too.
Tim Lesher <tim@lesher.ws>
http://www.lesher.ws
|
|
|
|
|
Not to complain too much, but the thread about Old style solution takes up space without adding anything to the article. Shouldn't something like that be in The Lounge?
BTW, the article is nicely written. The subject is frequently asked about.
One last quibble: you could scale down the screenshots so they don't take so long to download on my dial-up connection. No DSL or T1 here.
|
|
|
|
|
Ed Gadziemski wrote:
the thread about Old style solution takes up space without adding anything to the article.
Heheh, ain't it cool though? A broken arc, showing at a glance that it is really two threads, neither having anything to do with the first two posts!
--------
A common man's understanding of science. Not a normal common man's of course. A very smart common man's. -- Nish, on Science Writing
|
|
|
|
|
Shog9 wrote:
Heheh, ain't it cool though? A broken arc, showing at a glance that it is really two threads, neither having anything to do with the first two posts!
Yeah, that's sorta cool. A little weird though for any newcomer to CP. He comes here, reads the threads and is dead confused
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Ed Gadziemski wrote:
Not to complain too much, but the thread about Old style solution takes up space without adding anything to the article. Shouldn't something like that be in The Lounge?
Sorry! It should have been in the Lounge. But people (self included) just kept replying to mail-notifications by clicking on the direct message-link.
Ed Gadziemski wrote:
One last quibble: you could scale down the screenshots so they don't take so long to download on my dial-up connection. No DSL or T1 here.
This might surprise you. But I barely get 3 KB/s here. That's half the speed of a dial-up modem
Nish
p.s. Point noted anyway. Basically I tried to keep them within 500 pixels width. And since the compression JPEG I thought it'd not matter much.
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
since the compression JPEG I thought it'd not matter much
The 3 pictures together total 80 KB. At 3 KB/s, that's almost half a minute to download. Of course, my download speed is about 5 KB/s here, so I get them in a mere 16 seconds (not counting the text and the advertisements and the CP headers and ...).
|
|
|
|
|
Nish, I made lower-res, scaled versions of your screenshots. You can grab them from http://www.ravib.com/nish if you like.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
Nish, I made lower-res, scaled versions of your screenshots. You can grab them from http://www.ravib.com/nish if you like.
Thanks Ravi!
But are GIF files allowed?
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
I don't see why they'd be disallowed. My WebResourceProvider article uses GIFs because they're smaller.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
|
I saved them anyway
I wonder whether they are too small!
What did you use to do that?
And stretch.gif looks better than the original
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
I use Photoshop (an older version - 4.0) for all my image editing needs. I'd be happy to post slightly larger ones if you'd like. I can also sharpen them a tad, if you prefer.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|