|
If I load a transparent PNG (for example) and draw it using Graphics::DrawImage() , does GDI+ display the image transparency, or does it ignore it? I can't find any mention of this in the docs.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Yes of course*, DrawImage draws the image with the correct transparency applied. I've used it to draw PNG's on top of eachother with 8 bit transparency and works fine.
of course: That's because GDI+ is a sophisticated graphics api :P
|
|
|
|
|
Thanks . I thought it did, but I just thought I'd check.
Baris Kurtlutepe wrote:
That's because GDI+ is a sophisticated graphics api
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
I can change the title at the top of my app window by editing the resource, but I that way is not dynamically.
I want to do it programmatically.
Anyone help me.
Thank you for your reading.
|
|
|
|
|
SetWindowText() should do the trick, if you are talking about a MDI project, take a look at the first 100 posts here in the forum, this question has been answered this week...
hope this helps.
|
|
|
|
|
Sorry for my bad english!!
I have a problem whit CMenu in my application under win98.
If i create an item with MF_POPUP propertie, when i use the application, if i go on this item whit thw mouse, the new submenu doesn't appear!
Someone can help me
Bye.
|
|
|
|
|
Any ideas? please shed light on this.
DJ
|
|
|
|
|
hi,
the best way to capture video , use DirectShow , youwil find many samples and help in MSDN : DirectX -> DirectShow , u can also see DirectX 9 SDK it contains more new feature and may help u.
hatem
|
|
|
|
|
I agree that DirectShow is the best way to capture video. Besides you can use Video For Windows for the same job, it's much clumsier compared to DirectShow but does not require DirectX.
|
|
|
|
|
Baris Kurtlutepe wrote:
but does not require DirectX.
Since DirectX has been bundled with Windows ever since Win98, that's not really a problem any more
But then again, VFW doesn't require you to know COM
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
I am not sure that this will work with windows NT (if that is a concern of yours) because WinNT has directX 3...
John
|
|
|
|
|
Good point. I forgot about that.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
In any case there is no reason why you cannot use MFC and DirectShow or VWF.
John
|
|
|
|
|
|
I have already downloaded and installed DirectX 9 SDK on my machine. Thanks a lots.
BTW, if the coding for video capturing should be done on Linux instead of Windows Platforms, anybody has any idea?
DJ
|
|
|
|
|
Hello,
Can you tell me what CRichEditCtrl's limitations are?
Thank you.
|
|
|
|
|
No design forum hey Chris?
Here's a puzzle for you guys & gals. Someone who's working on a domain model-based system will have a nice solution for me I hope...
The idea of building a domain model is so that the valuable parts of a system (i.e. business logic) are portable and isolated. However, I'm having trouble working out a nice way to move constraints that apply to multiple objects (multiple rows in the same table) away from the database and into the domain model.
For example, the constraint that two customers cannot be given the same names.
The obvious choice is a constraint on the table, however this moves logic out of the domain model.
Mediator classes etc are of no use, because checks cannot be made at the time of commit.
The problem might be associated with the implementation of Unit of Work that I'm using (much like Martin Fowler's) - checks need to be performed at some point in the commit process (any earlier and there is an opportunity for error) but before the end of the committing database transaction (otherwise no rollback is possible).
Hope this makes sense thanks if you can help.
Nick
|
|
|
|
|
Does anyone have any tricks for auto-restarting an app? I have a few settings in my app that require the user to close the app and then restart it for the settings to take affect. It would be nice to auto-restart for the user if needed. I know I could do it with a seperate exec but I was hoping to stay away from that.
Any ideas?
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
You could try executing your own program using ShellExecute() as the very last thing before you exit. Use GetModuleFileName(AfxGetInstanceHandle()) (if you're using MFC) to get your exe filename and path, or GetCommandLine() if you want to reuse all the same parameters as well. You can strip the parameters off if you don't need them.
Hope this helps
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Hi,
where can i find 'Undelete/recover' files source code ?
thanks
Hari Krishnan
|
|
|
|
|
|
When i post code here and use the <code> </code> tags all it does in change the color of the font and I loose the tabs. How are some people able to change the background color from this blue to the codeproject beige and keep the formatting???????
|
|
|
|
|
Use the proper tag. Check the stylesheet.
--
"The money power of the country will endeavor to prolong its rule by preying upon the prejudices of the people until all wealth is concentrated in a few hands and the Republic destroyed."
-- Abraham Lincoln
|
|
|
|
|
Use the <pre></pre> tags
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Thanks Ryan,
That did the trick. I actually spent time digging around the css for the <proper> tag. Now, don’t I feel stupid. I guess this proves I'm not a "web page programmer" - whatever they are.
-Kevin
|
|
|
|