Thanks a lot gg,
Correct me if I'm wrong.
An application can create multiple processes, each process can have multiple threads of execution, and each thread can create windows.
SetFocus can...
Type: Posts; User: wow
Thanks a lot gg,
Correct me if I'm wrong.
An application can create multiple processes, each process can have multiple threads of execution, and each thread can create windows.
SetFocus can...
Thanks gg,
It seems this is a good idea. The previous window handle is retrieved, but when using SetFocus to set focus back to it, it seems not work, because SetFocus returns NULL, and MSDN...
Hi there,
When WM_SETFOCUS is trapped, we expect its WPARAM is the Handle to the window that has lost the keyboard focus. But it can NULL. In my app, it's always NULL. Why?
Can the keyboard...
It's a console program. The SDK is not come with MSVC 6.0. It's Feb 2003 SDK, the last one compatible with VC 6.0.
I created another one Win32 app for it, but got the same errors.
Thanks for...
Yes, both include and library are set properly. From the error message "d:\program files\microsoft sdk\include\gdiplusimaging.h(67)", you can see it has found the include file.
After I change...
Thanks for quick response. But what that means?
gdiplusimaging.h is include file from the SDK. Do I need to trouble shot of it?
Hi there,
The following codes are got from http://msdn2.microsoft.com/en-us/library/ms534078.aspx. But when it is compiled with VC 6.00 with February 2003 SDK, 102 errors are showed up as below....
It collapses at the inside of TranslateMessage: illegal instruction. I have no idea what's going on inside of the function, and why it crashes. So I try to check the return from it but fail because...
You know, it uses and occupies a lot of system time and resources, slows down its response and sometime causes application collapse. How do I notice it exists? One of my app crashes at it.
Is it...
I change the codes to the following:
while ( bRet = GetMessage (&msg, NULL, 0, 0))
{
bRet = TranslateMessage (&msg) ;
if (0 == bRet) {
wsprintf...
Good idea, Darryl. Can you tell how I can use Spy++ to trace where is the message come from? I launch Spy++ but get no clue how it can be used.
Thanks,
Thanks Darryl for your quick response.
All three return results from GetMessage are 1, and all three results from TranslateMessage are 0. All three hwnd is 0, that's right (get all message from...
Hi There,
The following codes keeps returning messages even nothing is preesed in the keyboard and mouse is not moved and touched.
while ( bRet = GetMessage (&msg, NULL, 0, 0))
...
Hi there,
We know the font Ariel Unicode MS support Unicode U+5929 and Ariel not. Can any one tell:
1. How do we determine if the font Ariel Unicode MS is installed?
2. How can we determine...
Sure, you don't include these strings directly in a program, but put them in a resource file. But do you think the resource file can handle the mixing of ASCII chars and Unicode chars correctly? Try...
I fell bad: is this the way to code Unicode with VC++? Microsoft has advocated Unicode programming for ten years now. Is this the way to insert Unicode chars into a string?
Thanks,
Hello there,
The problem is settled now as the following:
CharSet = DEFAULT_CHARSET
Font = TEXT("MS Gothic")
TCHAR str[] = TEXT("HelloXX, Windows 98!");
Thanks for the solution. But the display is as below:
HelloII, Windows 98!
I guess the default CODE PAGE is not UNICODE. Can any one confirms this for Winodws 2000/XP/Vista?
I know the...
When the string TEXT ("Hello\x5929\x5927, Windows 98!") is changed to TEXT ("Hello\x29\x59\x27\x59, Windows 98!") or TEXT ("Hello\x29\x59\x27\x59, Windows 98!"). The program displays:
Hello)Y'Y,...
Hello everyone,
We read a lot of about writing Unicode ready program since Charles Petzold’s Programming Windows, 5th Edition. But how is a REAL Unicode string included in a c program and...
We use GetVersionEx to get Windows version.
There are 24 localized versions of Windows 2000, Windows XP Home and Professional editions: English, German, Japanese, Chinese (Traditional), Chinese...
Thank you all. It works now.
Even #include <winable.h> is added, the error messages are the same. I check winable.h, all declarations about INPUT and KEYBDINPUT are the same as they are in winuser.h, which is included in...
Thanks so much. The warning was gone now. But why following code can not be compiled?
INPUT is a structure surely, why "error C2224: left of '.type' must have struct/union type"?
INPUT inp;...
Thanks so much. The error becomes warning as the following:
main.c(21) : warning C4005: '_WIN32_WINNT' : macro redefinition
unknown(0) : see previous definition of '_WIN32_WINNT'