Search:

Type: Posts; User: wow

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Thanks a lot gg, Correct me if I'm wrong. ...

    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...
  2. Thanks gg, It seems this is a good idea. The...

    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...
  3. How can the focus be returned to previous window?

    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...
  4. It's a console program. The SDK is not come with...

    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...
  5. Yes, both include and library are set properly....

    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...
  6. Thanks for quick response. But what that means? ...

    Thanks for quick response. But what that means?



    gdiplusimaging.h is include file from the SDK. Do I need to trouble shot of it?
  7. Why Codes from MSDN can not compiled with February 2003 SDK?

    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....
  8. Replies
    14
    Views
    2,718

    It collapses at the inside of TranslateMessage:...

    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...
  9. Replies
    14
    Views
    2,718

    You know, it uses and occupies a lot of system...

    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...
  10. Replies
    14
    Views
    2,718

    I change the codes to the following: ...

    I change the codes to the following:



    while ( bRet = GetMessage (&msg, NULL, 0, 0))
    {
    bRet = TranslateMessage (&msg) ;
    if (0 == bRet) {
    wsprintf...
  11. Replies
    14
    Views
    2,718

    Good idea, Darryl. Can you tell how I can use...

    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,
  12. Replies
    14
    Views
    2,718

    Thanks Darryl for your quick response. All...

    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...
  13. Replies
    14
    Views
    2,718

    Strange: GetMessage keeps returning message

    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))
    ...
  14. Replies
    1
    Views
    5,892

    How to determine if a font support a Unicode?

    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...
  15. Sure, you don't include these strings directly in...

    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...
  16. I fell bad: is this the way to code Unicode with...

    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,
  17. Hello there, The problem is settled now as the...

    Hello there,

    The problem is settled now as the following:

    CharSet = DEFAULT_CHARSET
    Font = TEXT("MS Gothic")



    TCHAR str[] = TEXT("HelloXX, Windows 98!");
  18. Thanks for the solution. But the display is as...

    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...
  19. When the string TEXT ("Hello\x5929\x5927, Windows...

    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,...
  20. How is REAL Unicode string included and displayed in a C program?

    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...
  21. What function can be invoked to check what Windows localized version is running?

    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...
  22. Replies
    8
    Views
    1,783

    Thank you all. It works now.

    Thank you all. It works now.
  23. Replies
    8
    Views
    1,783

    Even #include is added, the error...

    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...
  24. Replies
    8
    Views
    1,783

    Thanks so much. The warning was gone now. But why...

    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;...
  25. Replies
    8
    Views
    1,783

    Thanks so much. The error becomes warning as the...

    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'
Results 1 to 25 of 42
Page 1 of 2 1 2