|
|
hi all,
the same problem i am suffering like any thing. please provide me a solution for this which helps me a lot.
thanks,
uday.
uday kiran
|
|
|
|
|
|
I've added some bitmaps to my resources which I would like to display in buttons, but no matter if I use a CBitmap and SetBitmap or an Icon, a CImageList, I can't set the background transparent.
CImageList::Add says for crMask, "Color used to generate the mask. Each pixel of this color in the given bitmap is changed to black and the corresponding bit in the mask is set to one."
If I use that the background is really black. SetBkColor to CLR_NONE also doesn't work.
I haven't found an example on CP where the mask color is set for a button, maybe someone can help?
Thanks
Andre
|
|
|
|
|
ABuenger wrote: If I use that the background is really black. SetBkColor to CLR_NONE also doesn't work.
Make sure you are both creating the image list with a mask (ILC_MASK ) and drawing it with the proper flags (ILD_TRANSPARENT ). AFAIK, SetBkColor() only applies when you're drawing non-transparently (ILD_NORMAL ) or blending (ILD_BLEND50 ).
|
|
|
|
|
I wrote this code to send msg to MSMQ , but it did not work
can any one give me any idea to fix it,if there is something wrong ?
this is my queue -> gateway\private$\newqueue
--------------------------------
<br />
#include "stdafx.h"<br />
#include <stdio.h><br />
#include <atlbase.h><br />
#include <iostream><br />
#import <mqoa.dll><br />
using namespace MSMQ;<br />
using namespace std;<br />
<br />
void Send();<br />
<br />
int main(int argc, char* argv[])<br />
{<br />
Send();<br />
return 0;<br />
}<br />
<br />
void Send()<br />
{<br />
IMSMQQueueInfoPtr spQInfo("MSMQ.MSMQQueueInfo");<br />
spQInfo->PutPathName(SysAllocString(OLESTR(".\\newqueue")));<br />
IMSMQQueuePtr spQSend = spQInfo->Open(MQ_SEND_ACCESS, MQ_DENY_NONE);<br />
<br />
IMSMQMessagePtr spQMsg("MSMQ.MSMQMessage");<br />
spQMsg->Label = "This is a Word Document2";<br />
spQMsg->Body = "My Boudy";<br />
spQMsg->Send(spQSend);<br />
spQSend->Close();<br />
}<br />
-- modified at 18:41 Wednesday 19th April, 2006
|
|
|
|
|
ALQallaf wrote: ...but it did not work
Which means nothing if you don't tell us which part did not work. Your code has no error checking. What does the Send() method return?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
thank you, it give me an error when i try to run it thats all (Debug Error! abnormal program termination) , i have project i have to make it
|
|
|
|
|
Thank you it has been fixed
the only things that i have trust on my self ,
the problem it was from some parametar
thanks you DavidCrow
|
|
|
|
|
Hi everybody,
First of all, i've tried to find a solution for my problem by searching with google or in other message boards but no one could help me
I am writing a Media Player, in which the user should have the posibility to change the volume of the currently playing track; BUT not the master system volume.
Iam using C++/WinAPI, no MFC...hope you can help me
PS: I use the MCI-API to implement the playback functions
... THANX A LOT!!!!!!!!!!!!
|
|
|
|
|
|
lol, and what about the Windows Media Player or VLC (see: videolan.org) ??
|
|
|
|
|
|
yea ok ok WinAmp, but check this App (it's freeware):
http://www.videolan.org/mirror.php?mirror=http://downloads.videolan.org/pub/videolan/&file=vlc/0.8.4a/win32/vlc-0.8.4a-win32.exe
i think it'S the best example that shows that there is a way to solve it....
|
|
|
|
|
i have a project i recieved which does not compile with 6 errors all relatng to :- atltime.h
i am sure the project was programmed in .net, but is there a "easy fix" to make it backward compatible with visual studio 6.
help please......
|
|
|
|
|
msgm69 wrote: i am sure the project was programmed in .net
Do you mean it was written using managed code? Then no, you can't use VC 6.
If you mean it was written in native code using VS.NET, then you'll have to change the code so it doesn't use classes that were added after VC 6.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
The CBitmapButton has a SizeToContent method which resizes the button to fit the size of the bitmap, I am looking for a way to resize a CButton to fit the size of the label.
Thanks
Andre
|
|
|
|
|
|
I know how to display a CFormView object by calling it from another view. I need, however, to display a form from an "empty" MDI main frame. The application also contains other types of views.
For example, I would like the user to start the application and then open a data file. The data will then be displayed graphically and used to populate a form.
What is the best way to show a form from the main frame window?
Thanks in advance for your help.
|
|
|
|
|
chasetoys wrote: I'd like my application to run in the system tray...
See the second question here.
chasetoys wrote: 1) Is using the MFC too much overhead for this functionality?
2) Is using the MFC overhead in general? Does it waste memory/cycles/etc....?
No to both.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hi,
Answers for more general questions you can find out on
Designed for Windows XP[^]. There is specification and many hints how to write & develop application - recommended by Microsoft.
-----------
Mila
-- modified at 0:57 Thursday 20th April, 2006
|
|
|
|
|
I am new to Pocket PC. I would like to develop some directshow applications on PPC. Would you please give me some advice, such as developing tools, or some website to find help? Thanks.
|
|
|
|
|
Not sure if Gdiplus has this feature but i would like to zoom or have an appearance of zooming. I have an MFC application that views .jpg images. When the image appears on my screen i place a cross bar reticle like
|
_ _
|
I am attempting to do two things.
1. Zoom on the area in the middle of the above reticle
2. Based on a mouse click of any area, magnify or zoom that spot
Anyone with any experience in this area?
|
|
|
|
|
Besides the fact that strcpy is win32 and StrCpy is MFC, what would vary the use of one over the other?
I have an MFC dialog application and if i use StrCpy, it says undeclared. If i use strcpy, i have no problems...
Can anyone shed some light on the uses of the two. Am i maybe missing an include file?
|
|
|
|
|
StrCpy is declared in shlwapi.h
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
|
|
|
|