zoukankan      html  css  js  c++  java
  • c++WIN32获取syslistview行数

    开发者技术变现资源聚集地

    https://www.baiydu.com



    #include "stdafx.h" #include <windows.h> #include <commctrl.h> #include <iostream> #include <string> #include <sstream> #include <stdio.h> #include <stdlib.h> using namespace std; int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { HWND hwndRoot = NULL; HWND hwndList = NULL; int count=0; hwndRoot=FindWindow("#32770", "Windows 任务管理器"); hwndList=FindWindowEx(hwndRoot,NULL,"SysListView32","任务"); count=SendMessage(hwndList,LVM_GETITEMCOUNT,0,0); char tmp[8]; memset(tmp,0,8); itoa(count,tmp,10); MessageBox( NULL,tmp, ("listview行数"), MB_OK ); /* string pirntStr=NULL; stringstream stream; stream<<count; pirntStr=stream.str(); MessageBox( NULL,("ss"), ("行数"), MB_OK );*/ return 0; }

      

    本人创业做的一款androidApp, 下载量已经有2000多万,各种当前热门的网络手机奖励红包全部集成,另外还有热门电影和淘宝高额优惠券!很适合各类型的用户。

     

  • 相关阅读:
    python 之模块random
    python 迭代器
    python 生成器
    python 装饰器前之闭包和装饰器
    ELK平台搭建(下)
    ELK平台搭建(上)
    kvm 搭建
    python中的浅拷贝与深拷贝
    搭建单机版的FastDFS服务
    ASP.NET MVC Razor语法
  • 原文地址:https://www.cnblogs.com/xiaoliao/p/10021936.html
Copyright © 2011-2022 走看看