Click here to Skip to main content
15,893,564 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to convert byte array of .jpg and .jp2 images to Bitmap byte array in VC++? Pin
CPallini26-Apr-09 6:56
mveCPallini26-Apr-09 6:56 
GeneralRe: how to convert byte array of .jpg and .jp2 images to Bitmap byte array in VC++? Pin
kapardhi26-Apr-09 18:49
kapardhi26-Apr-09 18:49 
AnswerRe: how to convert byte array of .jpg and .jp2 images to Bitmap byte array in VC++? Pin
Hamid_RT26-Apr-09 6:33
Hamid_RT26-Apr-09 6:33 
QuestionControl not coming to the new method after .odl modification? [modified] Pin
SIJUTHOMASP26-Apr-09 3:02
professionalSIJUTHOMASP26-Apr-09 3:02 
AnswerRe: Control not coming to the new method after .odl modification? Pin
SIJUTHOMASP26-Apr-09 9:31
professionalSIJUTHOMASP26-Apr-09 9:31 
Questionextern variable Pin
durban225-Apr-09 21:25
durban225-Apr-09 21:25 
AnswerRe: extern variable Pin
Stuart Dootson25-Apr-09 21:47
professionalStuart Dootson25-Apr-09 21:47 
AnswerRe: extern variable Pin
ThatsAlok26-Apr-09 18:31
ThatsAlok26-Apr-09 18:31 
Questionconstructor and OnInitDialog() Pin
durban225-Apr-09 21:21
durban225-Apr-09 21:21 
AnswerRe: constructor and OnInitDialog() Pin
Stuart Dootson25-Apr-09 21:42
professionalStuart Dootson25-Apr-09 21:42 
AnswerRe: constructor and OnInitDialog() Pin
ThatsAlok26-Apr-09 21:18
ThatsAlok26-Apr-09 21:18 
QuestionFont text on command button Pin
durban225-Apr-09 21:16
durban225-Apr-09 21:16 
AnswerRe: Font text on command button Pin
Stuart Dootson25-Apr-09 21:38
professionalStuart Dootson25-Apr-09 21:38 
AnswerRe: Font text on command button Pin
Hamid_RT25-Apr-09 22:51
Hamid_RT25-Apr-09 22:51 
QuestionMFC exe Pin
linux_xjtu25-Apr-09 17:36
linux_xjtu25-Apr-09 17:36 
AnswerRe: MFC exe Pin
Stuart Dootson25-Apr-09 21:32
professionalStuart Dootson25-Apr-09 21:32 
Question3d object with transparent background Pin
high25-Apr-09 9:38
high25-Apr-09 9:38 
I need to be able to display a 3d object on desktop with transparent background so it seems like it's drawn directly to desktop. I managed to do that with layerd window and openGL. Here is the code making my main window layered:
///////////////LAYERD WINDOW/////////////////////////
SetWindowLong (hWnd , GWL_EXSTYLE ,
GetWindowLong (hWnd , GWL_EXSTYLE ) | WS_EX_LAYERED ) ;


typedef DWORD (WINAPI *PSLWA)(HWND, DWORD, BYTE, DWORD);
PSLWA pSetLayeredWindowAttributes;
HMODULE hDLL = LoadLibrary ("user32");
pSetLayeredWindowAttributes =
(PSLWA) GetProcAddress(hDLL,"SetLayeredWindowAttributes");
if (pSetLayeredWindowAttributes != NULL) {

pSetLayeredWindowAttributes (hWnd,
RGB(0,0,0), 255, LWA_COLORKEY|LWA_ALPHA);
}

/////////////////////////END LAYERED WINDOW

I need to be able to have this functionality with DirectX programming. This method didn't work for me. Is this the correct way to do it or maybe some other technique is more proper. I'm thinking maybe using windows regions instead of transparency or something else I'm not aware of.
Any help or advice would be greatly appreciated.
QuestionHow to Find files using http url path? Pin
SIJUTHOMASP25-Apr-09 6:05
professionalSIJUTHOMASP25-Apr-09 6:05 
AnswerRe: How to Find files using http url path? Pin
Stuart Dootson25-Apr-09 6:12
professionalStuart Dootson25-Apr-09 6:12 
GeneralRe: How to Find files using http url path? Pin
SIJUTHOMASP25-Apr-09 6:50
professionalSIJUTHOMASP25-Apr-09 6:50 
QuestionRe: How to Find files using http url path? Pin
David Crow25-Apr-09 16:46
David Crow25-Apr-09 16:46 
AnswerRe: How to Find files using http url path? Pin
Hamid_RT25-Apr-09 22:56
Hamid_RT25-Apr-09 22:56 
AnswerRe: How to Find files using http url path? Pin
SIJUTHOMASP26-Apr-09 3:37
professionalSIJUTHOMASP26-Apr-09 3:37 
GeneralRe: How to Find files using http url path? Pin
ThatsAlok26-Apr-09 18:34
ThatsAlok26-Apr-09 18:34 
QuestionStartup program blocked. Pin
Le@rner25-Apr-09 2:57
Le@rner25-Apr-09 2:57 

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.