SourceCodeSky QQ客服 SourceCodeSky 400电话 客服电话 暂无
首页 » 源代码 » 虚拟桌面 » /arrange.cpp

arrange.cpp ( 文件浏览 )

文件源自: 虚拟桌面
  • keepall 发布于 2016-08-28 09:36
  • 浏览次数:382
  • 下载次数: 2
  • 下载需 10 积分
  • 侵权举报

/* 
   File: arrange.cpp - Implementation of the Arrange dialog

   Implements the dialog handling code for the arrange menu option screen.

   Author: Steven E. Sipe
   
*/

#include "stdafx.h"

#include "zddesk.h"
#include "arrange.h"
#include "frame.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CZDDeskArrange dialog


// Constructor 
CZDDeskArrange::CZDDeskArrange(CZDDeskFrame *pFrame, CWnd* pParent /*=NULL*/)
   : CDialog(CZDDeskArrange::IDD, pParent)
{
   //{{AFX_DATA_INIT(CZDDeskArrange)
      // NOTE: the ClassWizard will add member initialization here
   //}}AFX_DATA_INIT

   // Save the parent frame
   m_pFrame = pFrame;

   // Initialize drag info
   m_bDragging = FALSE;
   m_hcurDrop = LoadCursor(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDC_DROP));
   m_hcurNoDrop = LoadCursor(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDC_NODROP));

   m_nSelectedEntry = -1;
}

// Destructor
CZDDeskArrange::~CZDDeskArrange()
{
}

// Handles MFC field data exchange
void CZDDeskArrange::DoDataExchange(CDataExchange* pDX)
{
   CDialog::DoDataExchange(pDX);
   //{{AFX_DATA_MAP(CZDDeskArrange)
   DDX_Control(pDX, IDC_TAB, m_Tab);
   DDX_Control(pDX, IDC_LIST, m_List);
   //}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CZDDeskArrange, CDialog)
   //{{AFX_MSG_MAP(CZDDeskArrange)
   ON_NOTIFY(TCN_SELCHANGE, IDC_TAB, OnSelchangeTab)
   ON_NOTIFY(LVN_BEGINDRAG, IDC_LIST, OnBegindragList)
   ON_BN_CLICKED(IDC_ACTIVATE, OnActivate)
   ON_WM_CLOSE()
   ON_BN_CLICKED(IDC_GLUE, OnGlue)
   ON_NOTIFY(LVN_ITEMCHANGED, IDC_LIST, OnItemChangedList)
   ON_BN_CLICKED(IDC_HELPBTN, OnHelpBtn)
   ON_NOTIFY_RANGE(TTN_NEEDTEXT, IDC_TAB, IDC_TAB, OnTabTooltip)
   ON_NOTIFY_RANGE(TTN_NEEDTEXT, 0, 9, OnTabTooltip)
   //}}AFX_MSG_MAP
END_MESSAGE_MAP()

//////////////////////////
// Private operations

// Loads the list of running applications for the specified desktop
void CZDDeskArrange::FillDeskList(int nDesk)
{
   // Clear the old list
   m_List.DeleteAllItems();
   int nImageIndex;

   // Get the number of apps on this desk
   int nCount = m_pFrame->GetWindowCount(nDesk);

   // Iterate through the app list
   for(int i = 0; i < nCount; i++)
   {
      HWND hWnd = m_pFrame->m_arrHwndDesktop[nDesk][i];

      // Valid window handle???
      if(hWnd)
      {
         CString strTitle;

         // Get the window's title 
         ::GetWindowText(hWnd,strTitle.GetBuffer(500),500);
         strTitle.ReleaseBuffer();

         // No title...display a default "untitled" string because we 
         // need a placeholder for this app because it is visible and
         // untitled, ooohhh, gross
         if(strTitle.IsEmpty())
            strTitle.LoadString(IDS_UNTITLED);

         // Set the appropriate list icon -- glued windows have a 
         // checkmar[!==More==!]			
...
展开> <收缩

下载源码到电脑,阅读使用更方便

1 积分

快速下载
还剩0行未阅读,继续阅读
免费下载源码
Sponsored links

源码文件列表

温馨提示: 点击源码文件名可预览文件内容哦 ^_^
...
名称 大小 修改日期
/registry.cpp 3.17 KB 1997-06-30 21:14:32
/property.cpp 4.19 KB 1997-06-30 21:14:32
/arrange.cpp 11.46 KB 1997-06-30 21:14:32
/zddesk.dsp 6.86 KB 1997-05-29 09:39:32
/zddesk.aps 71.35 KB 1997-06-30 21:24:34
/zddesk.rc 10.53 KB 1997-06-30 21:24:34
/resource.h 3.14 KB 1997-06-30 21:14:36
/frame.h 4.61 KB 1997-06-30 21:14:36
/arrange.h 2.16 KB 1997-06-30 21:14:36
/tray.h 1.20 KB 1997-06-30 21:14:36
/registry.h 913 Bytes 1997-06-30 21:14:36
/property.h 1.32 KB 1997-06-30 21:14:36
/zddesk.mak 9.55 KB 1997-06-11 23:49:46
/zddesk.mdp 36.00 KB 1997-06-25 22:26:02
/zddesk.clw 3.26 KB 1997-06-30 21:21:12
/zddesk.dsw 535 Bytes 1997-05-12 20:15:20
/zddesk.plg 1.65 KB 1997-06-02 09:38:16
/splash.h 1.17 KB 1997-06-30 21:14:36
/debug/ 0 Bytes 1997-05-26 17:03:26
/release/ 0 Bytes 1997-05-26 17:03:26
/res/ 0 Bytes 1997-05-26 17:03:26
/stdafx.h 471 Bytes 1997-06-30 21:14:36
/splash.cpp 3.30 KB 1997-06-30 21:14:32
/stdafx.cpp 208 Bytes 1997-06-30 21:14:32
/tray.cpp 2.60 KB 1997-06-30 21:14:32
/frame.cpp 20.43 KB 1997-06-30 21:14:32
/zddesk.h 2.08 KB 1997-06-30 21:14:36
/zddesk.cpp 5.66 KB 1997-06-30 21:14:32
/res/zddesk5.ico 1.05 KB 1997-05-02 22:48:26
/res/zddesk4.ico 1.05 KB 1997-05-02 22:56:50
/res/zddesk3.ico 1.05 KB 1997-05-02 22:43:30
/res/zddesk2.ico 1.05 KB 1997-05-02 22:56:50
/res/zddesk1.ico 1.05 KB 1997-05-02 22:56:50
/res/zddesk9.ico 1.05 KB 1997-05-02 22:55:12
/res/zddesk8.ico 1.05 KB 1997-05-02 22:53:34
/res/zddesk7.ico 1.05 KB 1997-05-02 22:51:36
/res/zddesk6.ico 1.05 KB 1997-05-02 22:49:50
/res/zddesk.ico 1.05 KB 1997-06-11 23:36:14
/res/list.bmp 358 Bytes 1997-05-01 00:39:54
/res/splsh16.bmp 18.09 KB 1997-06-30 21:24:34
/res/zddesk.rc2 397 Bytes 1997-01-30 11:35:14
/res/nodrop.cur 326 Bytes 1997-05-02 22:00:26
/res/drop.cur 326 Bytes 1997-05-02 22:00:26
Sponsored links
正在加载中……

Switch to the English version?

Yes
SourceCodeSky 英文版
No
SourceCodeSky 中文版

完善个人资料,获价值¥30元积分奖励!