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

Search:

Type: Posts; User: eclessiastes

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    3,422

    Re: ListView LVN_GETDISPINFO message

    well after 3 days guessing and trial and error i found the problem.
    Instead of WNDCLASSEXW i should've used WNDCLASSEX
    now it works fine without unicode
  2. Replies
    10
    Views
    3,422

    Re: ListView LVN_GETDISPINFO message

    Could it be a bug in visual studio or something ?
  3. Replies
    10
    Views
    3,422

    Re: ListView LVN_GETDISPINFO message

    #include <Windows.h>
    #include <CommCtrl.h>
    #include <stdio.h>

    char g_szClassName[] = "clasaDgg";

    HINSTANCE ghInstance = NULL;
    #define ID_ViewlogsListView 112
    #define ID_ViewlogsListView2...
  4. Replies
    10
    Views
    3,422

    Re: ListView LVN_GETDISPINFO message

    I put breakpoint at default: but it doesn't trigger it nor does TRACE say anything.i just get 2 empty lines :confused . I attached source code in post 3
  5. Replies
    10
    Views
    3,422

    Re: ListView LVN_GETDISPINFO message

    I'm sure the problem is in
    switch(pDispInfo->item.iSubItem) but i can't figure out what exactly i'm missing. Since the code is working in main dialog, it should work in any other new dialog created...
  6. Replies
    10
    Views
    3,422

    Re: ListView LVN_GETDISPINFO message

    Thank you Arjay,
    The field is added in listbox owner-drawn but is empty. this problem is only when listview is not on main dialog but on other windows. This is complete source code for win32...
  7. Replies
    10
    Views
    3,422

    ListView LVN_GETDISPINFO message

    I have 2 list view, one in main dialog and another in a second window that opens when i click a button.
    First listview receive LVN_GETDISPINFO but the listview from second window doesn't get...
  8. Replies
    3
    Views
    671

    Re: CreateThread struct not correct

    Thank you 2kaud, i was struggling here for over an hour.
  9. Replies
    3
    Views
    671

    CreateThread struct not correct

    struct strct { char * text; };

    DWORD WINAPI STARTT(LPVOID param)
    {
    strct * ts = (strct *)param;
    Sleep(2000);
    printf("%s \r\n", ts->text);
    delete ts;
    return 0;
    }
  10. Replies
    3
    Views
    721

    Re: Getting data from Amazon using ASIN

    You can't do it in mass.
    It is easy to code this but it will not work for more than few results because amazon,google,yahoo and most sites have protection against third party searches. It will ask...
  11. Replies
    8
    Views
    1,481

    Re: sendinput event

    probably because u use the same INPUT input. you could do INPUT input1 for one task, INPUT input2 for another etc. I had cases when SendInput didn't work for virtualized exe in different session id,...
  12. Replies
    8
    Views
    1,481

    Re: sendinput event

    Have you tried mouse_event instead ? Simulate click down then move pointer and simulate click up


    // Bring Window On Top
    HWND window = FindWindow(NULL, "Window Title");...
  13. [RESOLVED] CreateProcess in Thread is blocking win32 gui

    Hi
    I changed my program code from mfc to win32 and i'm experiencing some issues. In mfc i was using afxbeginthread to createprocess() and then wait for its exit code, everything run ok. In win32 i...
  14. Re: Conver .rc File Dialog Units to CreateWindowEx

    to 103, 7, 276, 196 in pixels not dialog units
  15. Re: Conver .rc File Dialog Units to CreateWindowEx

    I want to move h_listview to position 103, 7, 276, 196 in Dialog Units but function MoveWindow() accepts Pixels only and it doesn't work to convert Dialog Units to Pixels. According to msdn function...
  16. Re: Conver .rc File Dialog Units to CreateWindowEx

    RECT r;
    MapDialogRect(h_listview, &r);
    MoveWindow(h_listview, r.left, r.top, r.right, r.bottom, TRUE);

    Doesn't work either :confused:
  17. Re: Conver .rc File Dialog Units to CreateWindowEx

    RECT rc;
    SetRect(&rc, 103, 7, 276, 196);
    MapDialogRect(hwnd, &rc);
    HWND h_listview = CreateWindowEx(WS_EX_CLIENTEDGE, WC_LISTVIEW, L"", WS_CHILD | WS_VISIBLE , rec.left, rec.top, 276,...
  18. Conver .rc File Dialog Units to CreateWindowEx

    Hello
    I have
    "
    CONTROL "", ID_ListControl, "SysListView32", LVS_REPORT | LVS_ALIGNLEFT | WS_BORDER | LVS_OWNERDATA | WS_TABSTOP, 103, 7, 276, 196
    I'm trying to create control with...
  19. How to get return value of CreateDialog from CWinThread

    Hello
    I'm creating a dialog from thread then i need to get the return value from it.


    UINT CSTC_Analiser::StockDiagram(LPVOID param)
    {
    CSTC_Analiser* MainDialog = (CSTC_Analiser...
  20. Re: [RESOLVED] How to string.assign a wchar_t ?

    Your code is much cleaner and professional. Thank you 2kaud!
  21. Re: How to string.assign a wchar_t ?

    I had to use wstring instead of string. Just found out after many hours trying to figure out
  22. [RESOLVED] How to string.assign a wchar_t ?

    Hello
    This code works fine


    unsigned char buffer[] = "hello how are you";
    SIZE_T size = sizeof(buffer);
    std::string str;

    for (const unsigned char *p = buffer; p < buffer + size; p++)...
  23. Re: IPC between service and user application

    Thanks Igor,


    PSECURITY_DESCRIPTOR psd = NULL;
    BYTE sd[SECURITY_DESCRIPTOR_MIN_LENGTH];
    psd = (PSECURITY_DESCRIPTOR)sd;
    InitializeSecurityDescriptor(psd, SECURITY_DESCRIPTOR_REVISION);...
  24. Re: char [] or char [large size] question

    thanks for help guys! i resolved it.
  25. Re: char [] or char [large size] question

    char wnd_title[256];
    HWND hwnd = GetForegroundWindow();
    GetWindowTextA(hwnd, wnd_title, 256);

    Take this simple example. What if window title has more than 256 characters ? App will crash.
    My...
Results 1 to 25 of 87
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured