Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC GetDlgItemText Pin
missnazar2-Oct-04 16:52
missnazar2-Oct-04 16:52 
GeneralRe: MFC GetDlgItemText Pin
Max Santos2-Oct-04 16:03
Max Santos2-Oct-04 16:03 
GeneralProblem with OpenProcess Pin
Dev5782-Oct-04 3:04
Dev5782-Oct-04 3:04 
GeneralRe: Problem with OpenProcess Pin
Michael Dunn2-Oct-04 6:01
sitebuilderMichael Dunn2-Oct-04 6:01 
GeneralHow:i can't use this API !!! Pin
happycpp2-Oct-04 1:37
happycpp2-Oct-04 1:37 
GeneralRe: How:i can't use this API !!! Pin
BlackDice2-Oct-04 3:01
BlackDice2-Oct-04 3:01 
GeneralRe: How:i can't use this API !!! Pin
happycpp2-Oct-04 18:22
happycpp2-Oct-04 18:22 
GeneralRe: How:i can't use this API !!! Pin
gamitech2-Oct-04 10:26
gamitech2-Oct-04 10:26 
you may also do this to call the function:

#define WS_EX_LAYERED 0x00080000
#define LWA_COLORKEY 0x00000001
#define LWA_ALPHA 0x00000002



typedef VOID (CALLBACK* MySetWindowLayeredAttributes)(HWND hwnd,
COLORREF crKey,
BYTE bAlpha,
DWORD dwFlags);

typedef VOID (CALLBACK* UpdateLayeredWindow)(
HWND hwnd, // handle to layered window
HDC hdcDst, // handle to screen DC
POINT *pptDst, // new screen position
SIZE *psize, // new size of the layered window
HDC hdcSrc, // handle to surface DC
POINT *pptSrc, // layer position
COLORREF crKey, // color key
BLENDFUNCTION *pblend, // blend function
DWORD dwFlags // options
);



MySetWindowLayeredAttributes procedure;
UpdateLayeredWindow procedure1;

COLORREF color;
color=RGB(50,100,150);



HINSTANCE dllhinst;


dllhinst= LoadLibrary("User32.dll");

if (dllhinst!=NULL)
{
procedure=(MySetWindowLayeredAttributes)GetProcAddress(dllhinst, "SetLayeredWindowAttributes");

if (!procedure)
{
MessageBox(GetDesktopWindow(),"The HOOK FUNCTION COULD NOT BE LOADED","GABBY",MB_ICONSTOP|MB_APPLMODAL);
FreeLibrary(dllhinst);

};

procedura1=(MyUpdateLayeredWindow)GetProcAddress(dllhinst, "UpdateLayeredWindow");

if (!procedure1)
{
MessageBox(GetDesktopWindow(),"The HOOK FUNCTION COULD NOT BE LOADED","GABBY",MB_ICONSTOP||MB_APPLMODAL);
FreeLibrary(dllhinst);

};



}else MessageBox(NULL,"Could not load DLL","Gabby",MB_OK||MB_APPLMODAL);

//and now what you've been waitring for

procedure(hdlg,color,1,LWA_ALPHA);

Smile | :) hope you like it







gabby
GeneralSolved: How:i can't use this API !!! Pin
happycpp3-Oct-04 4:42
happycpp3-Oct-04 4:42 
QuestionUsing Flash Files? Pin
Member 14120142-Oct-04 1:11
Member 14120142-Oct-04 1:11 
Generalplease help me in this code Pin
youngashish2-Oct-04 0:39
youngashish2-Oct-04 0:39 
GeneralRe: please help me in this code Pin
Ravi Bhavnani2-Oct-04 6:50
professionalRavi Bhavnani2-Oct-04 6:50 
GeneralRe: please help me in this code Pin
Neville Franks2-Oct-04 11:40
Neville Franks2-Oct-04 11:40 
GeneralRe: please help me in this code Pin
Ravi Bhavnani2-Oct-04 12:09
professionalRavi Bhavnani2-Oct-04 12:09 
GeneralRe: please help me in this code Pin
Gary R. Wheeler2-Oct-04 12:41
Gary R. Wheeler2-Oct-04 12:41 
GeneralRe: please help me in this code Pin
Ravi Bhavnani3-Oct-04 7:30
professionalRavi Bhavnani3-Oct-04 7:30 
GeneralVideo overlay question Pin
Andre Massada1-Oct-04 22:07
Andre Massada1-Oct-04 22:07 
QuestionHow to overcome memory leak ? Pin
Amarelia1-Oct-04 20:45
Amarelia1-Oct-04 20:45 
AnswerRe: How to overcome memory leak ? Pin
BlackDice2-Oct-04 3:08
BlackDice2-Oct-04 3:08 
GeneralReading .gif File Problem Pin
otrcomm1-Oct-04 20:43
otrcomm1-Oct-04 20:43 
GeneralRe: Reading .gif File Problem Pin
ThatsAlok1-Oct-04 21:02
ThatsAlok1-Oct-04 21:02 
GeneralRe: Reading .gif File Problem Pin
otrcomm1-Oct-04 21:28
otrcomm1-Oct-04 21:28 
GeneralRe: Reading .gif File Problem Pin
ThatsAlok1-Oct-04 21:50
ThatsAlok1-Oct-04 21:50 
GeneralRe: Reading .gif File Problem Pin
otrcomm2-Oct-04 5:54
otrcomm2-Oct-04 5:54 
GeneralGot It! Re: Reading .gif File Problem Pin
otrcomm3-Oct-04 15:00
otrcomm3-Oct-04 15:00 

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.