|
there's a classic KB article (#79212) that gives the steps for a transparent Blt. but, it looks like MS has lost it.
but, Google knows where to find it.
|
|
|
|
|
Thanks for reply I've read this article... It means, I have to override WM_PAINT message and blit buttons by myself? Is there any way to 'prepare' somehow my bitmaps that Windows could draw them with transparency by its own routines, like it does for non-transparent toolbar buttons???
Ok, let's assume using WM_PAINT message, now I dont need WM_ERASEBKGND handler and should draw background and buttons in a single OnPaint handler?
Thanks again
|
|
|
|
|
PatrykDabrowski wrote: It means, I have to override WM_PAINT message and blit buttons by myself?
yep. but you'd have to do that for a button with any kind of image.
you can use icons, which have built-in transparency, if you want to simplify things. but you still have to handle OnPaint.
PatrykDabrowski wrote: Is there any way to 'prepare' somehow my bitmaps that Windows could draw them with transparency by its own routines, like it does for non-transparent toolbar buttons???
not with any built-in classes.
but, there are dozens of bitmap button classes out there (a few really good ones here on CP). ex. : i like this one.
|
|
|
|
|
Hi,
I have used the below function to get the IP address of an PC by giving
the PC name in strFullName;
struct hostent *host = = gethostbyname(strFullName)
Is there any api function to get an PC name by giving its IP Address.
VIBIN
"Fool's run away,where angle's fear to tread"
|
|
|
|
|
See if gethostbyaddr() which is a deprecated API helps. Alternatively see for getnameinfo()
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi
ALL
I want to use SetFont function in my project to change Font of Dialog Box, so if anybody have code of it , plz send me.
Thanks
Atool
|
|
|
|
|
Do you want to change font of controls on the dialog box or of Dialog Box
|
|
|
|
|
|
I want to use the Visual studio C++ 2005, but for standard c\c++ code, can I do it, can I turn the mixed code off, I want only native C\C++ code to be compiled and used, I don't want at future to use .net assemblies.
|
|
|
|
|
LongHC wrote: can I do it
Yes, you can.
LongHC wrote: can I turn the mixed code off, I want only native C\C++ code to be compiled and used, I don't want at future to use .net assemblies
Do you mean, not using /clr option ?
|
|
|
|
|
prasad_som wrote: Do you mean, not using /clr option ?
Yes, I mean that, how can I do it?, I want all things run as if Iam in the VC++ 6, only the IDE of the VS2005.
|
|
|
|
|
LongHC wrote: Yes, I mean that, how can I do it?,
I've answered that in previous reply. If you have not seletected /clr option, then it will be using native code.
LongHC wrote: I want all things run as if Iam in the VC++ 6, only the IDE of the VS2005
If you are using VS2005 , only difference would be use of latest libraries like MFC 8.0 , ATL 8.0 etc. In turn, you will get new functionalities.
-- modified at 8:32 Thursday 1st March, 2007
Plus, this compiler is stricter as far as C++ standards are considered.
|
|
|
|
|
|
Yup, when you create a new project, just don't select a C++ CLR project, and all will be fine
If you're upgrading existing VC6 projects, it'll figure out you're not using .NET, and won't add it.
|
|
|
|
|
|
Hi all,
When developing a Win32 Console Application is it possible to give the console window a name? If so, how would one go about doing this?
Thanx
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r My Blog: ^_^
|
|
|
|
|
if your using windows 2000 or later you can use the following function
<br />
HWND hConsoleHandle = GetConsoleWindow();<br />
SetWindowText( hConsoleHandle, "Some text" );
nave
|
|
|
|
|
Thanx Navee, I'll give it a shot.
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r My Blog: ^_^
|
|
|
|
|
The function GetConsoleWindow() does not exists. How can I get hold of the console handle?
Thanx..
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r My Blog: ^_^
|
|
|
|
|
HANDLE hConsoleHandle = GetStdHandle(STD_OUTPUT_HANDLE);
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r My Blog: ^_^
|
|
|
|
|
Programm3r wrote: The function GetConsoleWindow() does not exists.
Sure it does. It's in kernel32.dll.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Use SetConsoleTitle ;
SetConsoleTitle(_T("New Title"));
|
|
|
|
|
|
Is there any way to show ToolTip on TaskBar, using VC++.
|
|
|
|
|
Sunil Lanke wrote: Is there any way to show ToolTip on TaskBar
Can you explain a little more? Taskbar already shows tooltip if we place mouse over an icon in it.
nave
|
|
|
|