Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Member 10402390

@Member 10402390
About
Posts
12
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • my icon in system tray always visible
    M Member 10402390

    Richard MacCutchan wrote:

    what icon you are talking

    tray icon - obtained when the program is minimized to tray...

    ATL / WTL / STL question

  • my icon in system tray always visible
    M Member 10402390

    Richard MacCutchan wrote:

    Maybe you could give a proper explanation of your problem.

    my problem: my icon in system tray must be always visible

    ATL / WTL / STL question

  • my icon in system tray always visible
    M Member 10402390

    ATL/WTL/STL has nothing, but I do not now how can I do this :-D. Maybe i can do this use registry windows or something else...

    ATL / WTL / STL question

  • my icon in system tray always visible
    M Member 10402390

    How implement "my icon in system tray always visible"? thanks.

    ATL / WTL / STL question

  • error WTL
    M Member 10402390

    Do not know how but I understood :) i am commented some code in files: atlapp.h and atlgdi.h

    ATL / WTL / STL c++ help csharp visual-studio tutorial

  • error WTL
    M Member 10402390

    do not understand...

    ATL / WTL / STL c++ help csharp visual-studio tutorial

  • error WTL
    M Member 10402390

    i am use Visual Studio 2012 when i compile my project i get next error:

    C2039: 'AtlGetCommCtrlVersion' : is not a member of 'ATL'
    error C3861: 'AtlGetCommCtrlVersion': identifier not found

    how to fix this. thanks.

    ATL / WTL / STL c++ help csharp visual-studio tutorial

  • sort click colomn title
    M Member 10402390

    constantly are sent LVN_COLUMNCLICK, and the list is constantly being updated

    Windows API css question

  • sort click colomn title
    M Member 10402390

    i try sort virtual list-view with click on column title but when i click nothing happens this dialog procedure:

    BOOL CALLBACK DlgProc(HWND hwnd,UINT msg, WPARAM wParam,LPARAM lParam)
    {
    static HWND hWndList = 0;

    switch(msg)
    {
    case WM_INITDIALOG:
    {
    hWndList= CreateWindowEx(0, WC_LISTVIEW, NULL,
    WS_CHILD|WS_BORDER|WS_VISIBLE|LVS_OWNERDATA|LVS_REPORT,
    20, 20, 620, 300, hwnd, NULL, hInstance,NULL);

      //заголовок
      LV\_COLUMN lvc;
      ZeroMemory(&lvc,sizeof(lvc));
    
      lvc.mask=LVCF\_FMT|LVCF\_SUBITEM|LVCF\_TEXT|LVCF\_WIDTH;
      lvc.fmt=LVCFMT\_LEFT;//выравнивание
      
      lvc.cx=150;
      lvc.pszText=(LPSTR)"имя файла";
      ListView\_InsertColumn(hWndList,0,&lvc);
    
      ListView\_SetItemCount(hWndList,directory.size());
      return TRUE;
    }
    

    case WM_COMMAND:
    switch(LOWORD(wParam))
    {
    case IDOK:
    case IDCANCEL:
    EndDialog(hwnd,0);
    return true;
    }

    case WM_NOTIFY:
    {
    switch (((LPNMHDR)lParam)->code)
    {
    case LVN_GETDISPINFO:
    {
    NMLVDISPINFO* plvdi = (NMLVDISPINFO*)lParam;

          switch (plvdi->item.iSubItem)
          {
          case 0:
            {
              plvdi->item.pszText = (LPSTR)directory\[plvdi->item.iItem\].\_name.c\_str();//"имя файла"
              break;
            }
          default:
            break;
          }
        }
    
        case LVN\_COLUMNCLICK:
        {
          LPNMLISTVIEW pnmv = (LPNMLISTVIEW) lParam;
          //NM\_LISTVIEW \*pnmv= (NM\_LISTVIEW\*)lParam;
          switch (pnmv->iSubItem)
          {
          case 0:
            {
              //"имя файла"
              sort(directory.begin(), directory.end(), boost::bind(less(), boost::bind(&data::\_name, \_1), boost::bind(&data::\_name, \_2)));//возростание
              break;
            }
          default:
            {break;}
          }
          ListView\_RedrawItems(hwnd, 0, directory.size() - 1);
          UpdateWindow(hwnd);
          break;
        }
      }
    }
    

    default:
    return FALSE;
    }
    }

    i don't understand why??

    Windows API css question

  • virtual view list
    M Member 10402390

    ok, will try.

    Windows API tutorial

  • virtual view list
    M Member 10402390

    but this MFC...

    Windows API tutorial

  • virtual view list
    M Member 10402390

    I will be grateful for virtual view list example lvs_ownerdata

    thanks.

    Windows API tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups