CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: AlexA2

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: Problem sending LVN_COLUMNCLICK notification to a window

    I did but, I don't have VS2008SP1, and I can't modify the code on the application that is supposed to receive the WM_NOTIFY message.
    From what I understand, those exercises modify the code on the...
  2. Re: Problem sending LVN_COLUMNCLICK notification to a window

    I've ran the exe file of my compiled program as Administrator. Doesn't it give full privileges?
  3. Re: Problem sending LVN_COLUMNCLICK notification to a window

    How do I solve this problem?

    On WinXP x86 and x64, the code works perfect.
    On Win7 x64 and x86, it doesn't work at all. I've tested it with fresh installs, UAC off, no firewall, no AV, no...
  4. Re: Problem sending LVN_COLUMNCLICK notification to a window

    This is what I have done, and the function returns "Access is denied".

    You can also find the code here: http://pastebin.com/M6Yv9yYA



    #include <stdio.h>
    #include <windows.h>
    #include...
  5. Re: Problem sending LVN_COLUMNCLICK notification to a window

    Winspector did not intercept the WM_NOTIFY message under Win7 x64.

    I think that the application might be personalised for Windows Vista/7 and that it might use different notifications.
    Is it...
  6. Re: Problem sending LVN_COLUMNCLICK notification to a window

    Again, I have this problem that I have in Perl with LVN_COLUMNCLICK, too.

    The C++ code that I've posted, works fine on WinXP x86 and WinXP x64, but ti doesn't work on Win7 x64.
    How do I discover...
  7. Re: Problem sending LVN_COLUMNCLICK notification to a window

    I'd want to be able to use SendMessage instead, so that I'd avoid this possible cause.

    The application doesn't sort the whole list correctly, so I'd have to click like 50 times on that header in...
  8. Re: Problem sending LVN_COLUMNCLICK notification to a window

    1. Fixed.

    2. My bad, I wanted to say that the application that receives the notification crashes. A window related to VS2008 appears, and asks if I want to debug the application.

    Another thing...
  9. Re: Problem sending LVN_COLUMNCLICK notification to a window

    I've managed with this code, but sometimes it crashes when I close the buffer [ VirtualFreeEx( hProcHnd, pLVI, 0, MEM_RELEASE ); ]. Any ideas why?



    void thrd_try(){

    NMHEADER nmh; ...
  10. Re: Problem sending LVN_COLUMNCLICK notification to a window

    2 more screenshots, before and after OpenProcess is executed.
  11. Re: Problem sending LVN_COLUMNCLICK notification to a window

    1. What do you mean? It gets the correct PID, though.[I've checked it]
    2. I will do that next time.
    3. Good Morning! :)
  12. Re: Problem sending LVN_COLUMNCLICK notification to a window

    Why does it say "unused"?
    What should I do now?
  13. Re: Problem sending LVN_COLUMNCLICK notification to a window

    http://img254.imageshack.us/i/74380008.png/

    http://img254.imageshack.us/img254/1614/74380008.png

    Uploaded with ImageShack.us

    It doesn't look very good, right?
  14. Re: Problem sending LVN_COLUMNCLICK notification to a window

    How should I do a proper debug? Please tell me what should I check, and I'll post back the values.
  15. Re: Problem sending LVN_COLUMNCLICK notification to a window

    I understand now.

    I've changed the hWnd to the parent's one and Winspector did not intercept any message. :(
  16. Re: Problem sending LVN_COLUMNCLICK notification to a window

    Isn't SysHeader32 the child, and SysListView32 the parent that should receive the notification?
  17. Re: Problem sending LVN_COLUMNCLICK notification to a window

    hWnd belongs to the window that has the SysListView32 (Unicode) class.
    And, yes, I used Winspector to inspect messages for this SysListView32 window.
  18. Re: Problem sending LVN_COLUMNCLICK notification to a window

    According to Winpector, the application doesn't receive the WM_NOTIFY message.
  19. Problem sending LVN_COLUMNCLICK notification to a window

    I'm trying to send a notification to a ListView, but I can't find what am I doing wrong.
    This is the code:



    or you can see it here, too:
    http://pastebin.com/MJyb4xib
  20. Re: How and what kind of message should I send to a sysheader32 resource in order to

    I've managed to make it work correctly in Perl, but only on WinXP x86(in a VM that I use for testing purposes).
    It doesn't work 100% under Win7 x64. I have no idea why.

    In WinXP x86, it...
  21. Re: How and what kind of message should I send to a sysheader32 resource in order to

    This is what I've written:



    I've also written this:



    Doesn't work either, because VirtualAllocEx returns 0. [ It is based on a sample Perl code that I've found, and which actually works...
  22. Re: How and what kind of message should I send to a sysheader32 resource in order to

    "to control the app"- to make the application to behave as if I clicked myself on that header item.



    Yes, this is my mistake.

    http://img220.imageshack.us/img220/8939/capture2ryt.png


    On...
  23. Re: How and what kind of message should I send to a sysheader32 resource in order to

    I've tried to control the app directly from Visual C++O(instead of perl) with HDN_ITEMCLICK, but I couldn't manage to do it.


    I've found the app's sources, but I'm really lost here, I don't know...
  24. Re: How and what kind of message should I send to a sysheader32 resource in order to

    I haven't abandoned it, I just want to be aware of the options that I have and not to make wrong assumptions.
    Last Sunday I did some tests with the code written in Perl, but it did not work. I might...
  25. Re: How and what kind of message should I send to a sysheader32 resource in order to

    Thank you for the tips. They are very useful, and I'll try them as soon as possible.



    SendInput wouldn't work with the application kept minimized, and with me doing something else on the PC,...
Results 1 to 25 of 34
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured