Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDebuggerEvents under C++ in Visual Studio [modified] Pin
primexx23-Jan-09 22:31
primexx23-Jan-09 22:31 
QuestionSetLayeredWindowAttributes() - Undeclared identifier Pin
ganesh.dp23-Jan-09 22:06
ganesh.dp23-Jan-09 22:06 
AnswerRe: SetLayeredWindowAttributes() - Undeclared identifier Pin
Naveen23-Jan-09 22:39
Naveen23-Jan-09 22:39 
GeneralRe: SetLayeredWindowAttributes() - Undeclared identifier Pin
ganesh.dp23-Jan-09 22:56
ganesh.dp23-Jan-09 22:56 
GeneralRe: SetLayeredWindowAttributes() - Undeclared identifier Pin
ganesh.dp23-Jan-09 23:00
ganesh.dp23-Jan-09 23:00 
GeneralRe: SetLayeredWindowAttributes() - Undeclared identifier Pin
Naveen23-Jan-09 23:07
Naveen23-Jan-09 23:07 
GeneralRe: SetLayeredWindowAttributes() - Undeclared identifier Pin
ganesh.dp23-Jan-09 23:28
ganesh.dp23-Jan-09 23:28 
GeneralRe: SetLayeredWindowAttributes() - Undeclared identifier Pin
Naveen23-Jan-09 23:39
Naveen23-Jan-09 23:39 
ganesh.dp wrote:
1. can i load that dll from my project folder(because i download that from web, my don't doesn't)


No you dont have to download it from net. That dll comes with the installation of OS. it exists in the "c:\WINDOWS\system32\user32.dll"

ganesh.dp wrote:
2. if load that file in dynamic mode, but before that compiler gives error(for setlayeredwondowattributes()).


ok. This is how to call that function dynamically.

#define LWA_COLORKEY 0x00000001
#define LWA_ALPHA 0x00000002 
typedef BOOL (WINAPI *pSetLayeredWindowAttributes)( HWND hwnd, COLORREF crKey, BYTE bAlpha, DWORD dwFlags ); 


HMODULE hUser32 = LoadLibrary( _T("User32.dll"));
pSetLayeredWindowAttributes fnSetLayeredWindowAttributes = (pSetLayeredWindowAttributes)GetProcAddress( hUser32, "SetLayeredWindowAttributes");
if( 0 == fnSetLayeredWindowAttributes )
{
	AfxMessageBox( _T("Failed to load SetLayeredWindowAttributes function"));
}
else
{
	// Call the SetLayeredWindowAttributes function
	fnSetLayeredWindowAttributes( m_hWnd, 0, 100, LWA_ALPHA );
}
FreeLibrary( hUser32 );



GeneralRe: SetLayeredWindowAttributes() - Undeclared identifier Pin
ganesh.dp24-Jan-09 0:10
ganesh.dp24-Jan-09 0:10 
GeneralRe: SetLayeredWindowAttributes() - Undeclared identifier Pin
Naveen24-Jan-09 0:13
Naveen24-Jan-09 0:13 
GeneralRe: SetLayeredWindowAttributes() - Undeclared identifier Pin
ganesh.dp24-Jan-09 0:58
ganesh.dp24-Jan-09 0:58 
QuestionCasino War game in C++ Pin
Nandu_77b23-Jan-09 20:24
Nandu_77b23-Jan-09 20:24 
QuestionSave the file in Unicode format Pin
Max++23-Jan-09 20:22
Max++23-Jan-09 20:22 
AnswerRe: Save the file in Unicode format Pin
Stuart Dootson23-Jan-09 20:52
professionalStuart Dootson23-Jan-09 20:52 
AnswerRe: Save the file in Unicode format Pin
Rajesh R Subramanian25-Jan-09 4:50
professionalRajesh R Subramanian25-Jan-09 4:50 
QuestionBest suited sorting algorithm Pin
VCProgrammer23-Jan-09 19:44
VCProgrammer23-Jan-09 19:44 
AnswerRe: Best suited sorting algorithm Pin
VCsamir23-Jan-09 20:05
VCsamir23-Jan-09 20:05 
GeneralRe: Best suited sorting algorithm Pin
VCProgrammer23-Jan-09 20:35
VCProgrammer23-Jan-09 20:35 
AnswerRe: Best suited sorting algorithm Pin
Stuart Dootson23-Jan-09 21:06
professionalStuart Dootson23-Jan-09 21:06 
Questionmenubar custom draw in MFC (Very Urgent...............) Pin
AnithaSubramani23-Jan-09 18:24
AnithaSubramani23-Jan-09 18:24 
AnswerRe: menubar custom draw in MFC (Very Urgent...............) Pin
VCsamir23-Jan-09 20:18
VCsamir23-Jan-09 20:18 
AnswerRe: menubar custom draw in MFC (Very Urgent...............) Pin
Stuart Dootson23-Jan-09 21:08
professionalStuart Dootson23-Jan-09 21:08 
GeneralRe: menubar custom draw in MFC (Very Urgent...............) Pin
AnithaSubramani23-Jan-09 21:31
AnithaSubramani23-Jan-09 21:31 
GeneralRe: menubar custom draw in MFC (Very Urgent...............) Pin
Stuart Dootson23-Jan-09 22:47
professionalStuart Dootson23-Jan-09 22:47 
QuestionTAB and Escape keys are not working in windows created using CreateDialog Pin
vinvino200123-Jan-09 18:01
vinvino200123-Jan-09 18:01 

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.