Click here to Skip to main content
15,905,144 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Window has no title... conflicting window styles? Pin
Sauce!17-Dec-09 2:57
Sauce!17-Dec-09 2:57 
GeneralRe: Window has no title... conflicting window styles? Pin
Sauce!17-Dec-09 3:54
Sauce!17-Dec-09 3:54 
GeneralRe: Window has no title... conflicting window styles? Pin
Code-o-mat17-Dec-09 8:33
Code-o-mat17-Dec-09 8:33 
QuestionUdp broadcast failed in vista Pin
ganesh.dp16-Dec-09 20:04
ganesh.dp16-Dec-09 20:04 
AnswerRe: Udp broadcast failed in vista Pin
KarstenK16-Dec-09 21:09
mveKarstenK16-Dec-09 21:09 
GeneralRe: Udp broadcast failed in vista Pin
ganesh.dp16-Dec-09 22:31
ganesh.dp16-Dec-09 22:31 
GeneralRe: Udp broadcast failed in vista Pin
KarstenK16-Dec-09 22:35
mveKarstenK16-Dec-09 22:35 
Questionerror PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue Pin
itkid16-Dec-09 18:27
itkid16-Dec-09 18:27 
AnswerRe: error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue [modified] Pin
22491716-Dec-09 18:33
22491716-Dec-09 18:33 
GeneralRe: error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue Pin
itkid16-Dec-09 19:02
itkid16-Dec-09 19:02 
GeneralRe: error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue Pin
22491716-Dec-09 19:13
22491716-Dec-09 19:13 
GeneralRe: error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue Pin
itkid16-Dec-09 19:31
itkid16-Dec-09 19:31 
GeneralRe: error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue Pin
itkid16-Dec-09 19:32
itkid16-Dec-09 19:32 
AnswerRe: error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue Pin
KarstenK16-Dec-09 22:38
mveKarstenK16-Dec-09 22:38 
Questionreading writing to a file system Pin
hrishiS16-Dec-09 17:44
hrishiS16-Dec-09 17:44 
AnswerRe: reading writing to a file system Pin
Adam Roderick J16-Dec-09 17:56
Adam Roderick J16-Dec-09 17:56 
GeneralRe: reading writing to a file system [modified] Pin
hrishiS16-Dec-09 18:23
hrishiS16-Dec-09 18:23 
GeneralRe: reading writing to a file system Pin
Adam Roderick J16-Dec-09 21:51
Adam Roderick J16-Dec-09 21:51 
AnswerRe: reading writing to a file system Pin
Rajesh R Subramanian16-Dec-09 17:59
professionalRajesh R Subramanian16-Dec-09 17:59 
GeneralRe: reading writing to a file system Pin
hrishiS16-Dec-09 18:18
hrishiS16-Dec-09 18:18 
AnswerRe: reading writing to a file system Pin
CPallini16-Dec-09 22:03
mveCPallini16-Dec-09 22:03 
QuestionUse theme elements with alpha Pin
Ivo Beltchev16-Dec-09 13:39
Ivo Beltchev16-Dec-09 13:39 
Hi
I am trying to use the theme images for the start menu in Vista. It has areas that are fully transparent (around the corners), areas that are fully opaque (for the menu items) and translucent areas for the black frame.

I tried DrawThemeBackground but the translucent areas show opaque. So basically I get either alpha 0 or alpha 255. Nothing inbetween. I looked up the image in the msstyles file (it is image #717) and it has the correct opacity values. Here's my code:
BITMAPINFO dib = {sizeof(dib)};
dib.bmiHeader.biWidth = rc.right;
dib.bmiHeader.biHeight = rc.bottom;
dib.bmiHeader.biPlanes = 1;
dib.bmiHeader.biBitCount = 32;
dib.bmiHeader.biCompression = BI_RGB;
unsigned int *bits;
HBITMAP bmp=CreateDIBSection(hdc,&dib,DIB_RGB_COLORS,(void**)&bits,NULL,0);
SelectObject(hdc,bmp);
SetDCBrushColor(hdc,0x0);
FillRect(hdc2,&rc,(HBRUSH)GetStockObject(DC_BRUSH));
DrawThemeBackground(theme,hdc,SPP_PLACESLIST,0,&rc,&rc);

I then check the alpha values in the bits array and besides couple of pixels with alpha=0 all the rest are 255.

Any ideas how to get the true opacity?
AnswerRe: Use theme elements with alpha Pin
Adam Roderick J16-Dec-09 17:05
Adam Roderick J16-Dec-09 17:05 
GeneralRe: Use theme elements with alpha Pin
Ivo Beltchev16-Dec-09 17:31
Ivo Beltchev16-Dec-09 17:31 
GeneralRe: Use theme elements with alpha Pin
Rozis17-Dec-09 9:56
Rozis17-Dec-09 9:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.