|
Naveen_mah wrote:
Customer may not have it...
Yep, you'd have to ship it.
Naveen_mah wrote:
It will be great if you can suggest some way using just windows API's
Draw the text on black and then use TransparentBlt ?
Naveen_mah wrote:
Anyways I would still like to know how to do using GDI+ just for my knowledge...
In GDI+ you can set the transparency of a solid brush, which you'd then use to draw the text.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
Draw the text on black and then use TransparentBlt ?
So does that mean to make a bitmap with text and black background and then do TransparentBlt on original DC?
|
|
|
|
|
What if string is also drawn as black?
|
|
|
|
|
Well, then that won't work, I guess. You'd have to do it somewhat more manually, as in byte by byte.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I'm not sure if this is what's causing your problem, but you might try setting the background mode to transparent before drawing your text:
int prevBkMode = SetBkMode( yourHDC, TRANSPARENT );
SetBkMode( yourHDC, prevBkMode );
Chris Richardson
|
|
|
|
|
I have already done that ...my problem is not with the background of text.
Background is transparent ...but the letters are not transparent...
Where the letter is drawn the text below it is hidden.
|
|
|
|
|
Hi...
I have two questions about Windows Services:
1) what is the life_cycle of a windows service?
2) How a program comunicate with a windows Service?
please answer to me immediately!
|
|
|
|
|
Sml_Moj wrote:
please answer to me immediately!
Is,that you signature or your order.it's look awkward!
Sml_Moj wrote:
1) what is the life_cycle of a windows service?
Life Cycle of Window Service is manage by ServiceMain function, it is entry point of service like main() for dos based c++ and WinMain for Win32
Sml_Moj wrote:
2) How a program comunicate with a windows Service?
you can communicate via Interprocess communication because service is also a process
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Control services by using the service functions such as StartService .
You can send some control commands to a service using the function ControlService .
|
|
|
|
|
Dear All,
I'm trying to add an ActiveX Control to the dialogs in my ActiveX Control Project. The problem is that I'm unable to drop the ActiveX control from the Controls Toolbar, to a Dialog in my project. I get the following error:
"Cannot drop ActiveX controls in Non-MFC dialogs."
Is there any other way i can do this?
Devoirs,
____________________________________________________________
rishabhs
I think therefore I am.
|
|
|
|
|
i want to implement non-MFC based IP address box.
i tried the following as advised by Alok when i posted the mail earliar.
i tried to implement the IP address using the following code
hWnd = CreateWindowEx(NULL,ClsName,WndName,WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 300, 200, NULL, NULL, GetModuleHandle(NULL), NULL);
HWND IPAddrWindow = CreateWindow("SysIPAddress32",NULL, WS_VISIBLE|WS_CHILD,35,55,250,30,hWnd,NULL,NULL,NULL);
But the IP Address box is not created... only the blank base window is displayed. where am i wrong?
thanx in advance
|
|
|
|
|
ask_you wrote:
But the IP Address box is not created... only the blank base window is displayed. where am i wrong?
Where is the code, if necessary, to create the four edit controls? They are child windows of the "SysIPAddress32" window.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
thanx for the reply.
but i still don't know what is needed to be done. so SysIPAddress32 is not a default class like BUTTON? is it user created? that is, i have to create the IP address box?
|
|
|
|
|
anyways, i was successful in creating IP box!!
thanx
|
|
|
|
|
Ok, so what was the missing ingredient?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
ask_you wrote:
but i still don't know what is needed to be done.
How about calling:
INITCOMMONCONTROLSEX iccex;
iccex.dwSize = sizeof(iccex);
iccex.dwICC = ICC_INTERNET_CLASSES;
InitCommonControlsEx(&iccex);
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
DavidCrow wrote:
INITCOMMONCONTROLSEX iccex;
iccex.dwSize = sizeof(iccex);
iccex.dwICC = ICC_INTERNET_CLASSES;
InitCommonControlsEx(&iccex);
well, this was exactly what i had done?
anyway, thanx.
|
|
|
|
|
midl\oleaut32.dll : error MIDL2020 : error generating type library : LayOut failed : NSMyInterface(0x80029C83)
Error executing midl.exe.
is it a bug of microsoft platform sdk? should i update my sdk?
i'm using win2003 sp1 ,PSDK 2003 Feb
|
|
|
|
|
MIDL2020 seems to be a catch-all error, that is, it may be caused by a number of different reasons.
Maybe this[^] can be of help. Or maybe not.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Is there anyway of getting the current directory in unix? _getcwd(...) doesn't compile in unix.
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
|
Ravi Bhavnani wrote:
How about getcwd()?
Same, because the compiler complains it couldn't find direct.h which it needed for _getcdw() or getcdw()
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Weiye Chen wrote:
the compiler complains it couldn't find direct.h
That would lead me to believe there's a problem in your #include search path. Try #include <unistd.h> and see if that helps.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
Try #include <unistd.h>
Ah, now it works perfectly on unix using getcdw(...) . But the strange thing is, VS complains it couldn't find that.
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Weiye Chen wrote:
But the strange thing is,
It's not strange - the UNIX manual states you need to include <unistd.h> while the Microsoft docs state you need to include <direct.h> .
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|