Click here to Skip to main content
16,012,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Symmetric matrix Pin
namaskaaram29-Mar-05 0:35
namaskaaram29-Mar-05 0:35 
GeneralControlling Stop Bit Pin
Logan from Singapore28-Mar-05 22:16
Logan from Singapore28-Mar-05 22:16 
GeneralRe: Controlling Stop Bit Pin
Mike Dimmick29-Mar-05 1:13
Mike Dimmick29-Mar-05 1:13 
GeneralWin32 API: Shutdown a remote PC Pin
shaiba28-Mar-05 22:13
shaiba28-Mar-05 22:13 
GeneralRe: Win32 API: Shutdown a remote PC Pin
ThatsAlok28-Mar-05 22:28
ThatsAlok28-Mar-05 22:28 
GeneralRe: Win32 API: Shutdown a remote PC Pin
shaiba28-Mar-05 23:31
shaiba28-Mar-05 23:31 
GeneralRe: Win32 API: Shutdown a remote PC Pin
ThatsAlok29-Mar-05 0:06
ThatsAlok29-Mar-05 0:06 
QuestionGet window type? Pin
Dominik Reichl28-Mar-05 22:09
Dominik Reichl28-Mar-05 22:09 
Hello!

I am translating dialogs by calling EnumChildWindows in the dialog class. Windows then calls my translation callback function for all child windows, which looks like this:
BOOL CALLBACK TranslateWindowCallback(HWND hwnd, LPARAM lParam)
{
	TCHAR sz[1024];
	GetWindowText(hwnd, sz, 1023);
	SetWindowText(hwnd, TRANSLATE_FN(sz));
	return TRUE;
}

This works pretty fine, but unfortunately it also translates edit controls and rich edit controls. I don't want this. It should translate only buttons, checkboxes, radioboxes, static texts, ...

How can I get the type of a window using only the HWND?

Thanks and best regards
Dominik



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)
(doesn't work on NT)

AnswerRe: Get window type? Pin
ThatsAlok28-Mar-05 22:23
ThatsAlok28-Mar-05 22:23 
GeneralRe: Get window type? Pin
Dominik Reichl28-Mar-05 22:34
Dominik Reichl28-Mar-05 22:34 
GeneralRe: Get window type? Pin
ThatsAlok28-Mar-05 22:46
ThatsAlok28-Mar-05 22:46 
GeneralRe: Get window type? Pin
Dominik Reichl28-Mar-05 23:50
Dominik Reichl28-Mar-05 23:50 
GeneralRe: Get window type? Pin
ThatsAlok29-Mar-05 0:04
ThatsAlok29-Mar-05 0:04 
GeneralRe: Get window type? Pin
Michael Dunn28-Mar-05 23:48
sitebuilderMichael Dunn28-Mar-05 23:48 
GeneralFile I/O Pin
Anonymous28-Mar-05 21:48
Anonymous28-Mar-05 21:48 
GeneralRe: File I/O Pin
David Crow29-Mar-05 4:51
David Crow29-Mar-05 4:51 
Generalnetwork printing problem Pin
Sudhir Mangla28-Mar-05 21:35
professionalSudhir Mangla28-Mar-05 21:35 
GeneralRe: network printing problem Pin
DasdaDAS28-Mar-05 22:53
DasdaDAS28-Mar-05 22:53 
GeneralRe: network printing problem Pin
Sudhir Mangla29-Mar-05 2:15
professionalSudhir Mangla29-Mar-05 2:15 
QuestionHow to create CButton dynamically in MFC? Pin
xo300028-Mar-05 21:05
xo300028-Mar-05 21:05 
AnswerRe: How to create CButton dynamically in MFC? Pin
DasdaDAS28-Mar-05 23:23
DasdaDAS28-Mar-05 23:23 
GeneralRe: How to create CButton dynamically in MFC? Pin
xo300029-Mar-05 1:13
xo300029-Mar-05 1:13 
GeneralRe: How to create CButton dynamically in MFC? Pin
jhwurmbach30-Mar-05 3:56
jhwurmbach30-Mar-05 3:56 
QuestionWininet question? Pin
mvtapia28-Mar-05 20:53
mvtapia28-Mar-05 20:53 
AnswerRe: Wininet question? Pin
ThatsAlok28-Mar-05 21:36
ThatsAlok28-Mar-05 21:36 

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.