1)

CMainFrame* pmainframe=(CMainFrame*)AfxGetMainWnd();
CChildFrame *m_finderframe=(CChildFrame*)pmainframe->GetActiveFrame();

CImageView *m_View=(CImageView*)pmainframe->GetActiveFrame()->GetActiveView();

CXXXView* pV = (CXXXView*)m_wndSplitter.GetPane(i,j);

2)

menu

1\ON_COMMAND(ID_creat_template, Oncreattemplate)     ".cpp"   //BEGIN_MESSAGE_MAP

2\void CMainFrame::Oncreattemplate()    ".cpp"

3\afx_msg void Oncreattemplate();      ".H"    //DECLARE_MESSAGE_MAP()

button

1\ON_BN_CLICKED(IDC_com_showsource, Oncomshowsource)  ".cpp"   //BEGIN_MESSAGE_MAP

2\void CControlDlg::Oncomshowsource()        ".cpp"

3\afx_msg void Oncomshowsource();     ".h"   //DECLARE_MESSAGE_MAP()

3)clw show

1、BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) ".cpp"     
 //{{AFX_MSG_MAP(CMainFrame)
  //}}AFX_MSG_MAP
END_MESSAGE_MAP()

2、 //{{AFX_MSG(CMainFrame)     ".h" 
 //}}AFX_MSG
 DECLARE_MESSAGE_MAP()

3、// Overrides               ".h" 
 // ClassWizard generated virtual function overrides
 //{{AFX_VIRTUAL(CMainFrame)
 //}}AFX_VIRTUAL

3)

CMainFrame* pmainframe=(CMainFrame*)AfxGetMainWnd();

//CImageView *m_View=(CImageView*)pmainframe->GetActiveFrame()->GetActiveView();

4)

str2.Format ("%d",i);
      m_runtime_combo.InsertString(i,(str2));
   m_source_combo.InsertString(i,(str2));

location: all
CComboBox* pcom_run =(CComboBox*) GetDlgItem(IDC_COMBO_runtime);
     pcom_run->GetWindowText(str4);

5)

CString CBMP::GetExeAbsolutePath()
{
    char buffer[ MAX_PATH ];
    CString ExePath = "";
    GetModuleFileName( NULL, buffer, MAX_PATH );
    ExePath=CString( buffer );
    ExePath=ExePath.Left(
                ExePath.ReverseFind( '\\' )>ExePath.ReverseFind( '/' )?
                ExePath.ReverseFind( '\\' )+ 1:
                ExePath.ReverseFind( '/' )+1       
                );
    return ExePath;
}

6) draw Rectangle

CClientDC dc(pView);

dc.SetROP2(R2_NOT); //创建一个矩形3
       dc.SelectStockObject(NULL_BRUSH);
       dc.Rectangle(CRect(px,pe));

CClientDC dc(pView);

CBrush brushBlue(RGB(0, 0, 255));  //set color
   CBrush* pOldBrush = dc.SelectObject(&brushBlue); //set color

dc.Rectangle(CRect(px,pe));

dc.SelectObject(pOldBrush);  //set color

vc 常用语句的更多相关文章

  1. SQL server 常用语句

    SQL Server中常用的SQL语句   1.概述 2.查询概述 3.单表查询 4.连接查询 5.带有exists的相关子查询 6.SQL的集合操作 7.插入操作 8.删除操作 9.修改操作 10. ...

  2. mysql常用语句总结

    1.创建语句 CREATE DATABASE database_name //创建数据库 //删表 DROP TABLE IF EXISTS `t_social_user_extend`; //建表C ...

  3. JS常用语句

    JavaScript常用语句 1.document.write("");    输出语句 2.JS中的注释为   // 3.传统的HTML文档顺序是:     document-& ...

  4. velocity常用语句速查表

    velocity常用语句 * 变量定义 #set($directoryRoot = "www" ) * #if($!list.size() != 0) //判断list不为空 #f ...

  5. MySQL 常用语句 (汇集)

    原文地址:MySql常用语句作者:wuyanle 一.mysql常用语句 创建,删除和最基本查询: 显示数据库  mysql->show databases; 创建数据库  mysql-> ...

  6. mysql数据库常用语句2

    关于mysql常用语句的整理,上一篇涉及到ddl.dml以及一些简单的查询语句. 1:mysql分页查询 select * from table_name limit 5,10;   从下标为5元素查 ...

  7. mysqldump的常用语句及各参数详解

    mysqldump的常用语句及各参数详解 分类: MySQL 2011-01-11 17:55 1368人阅读 评论(0) 收藏 举报 数据库mysql服务器tableinsertdatabase m ...

  8. mysql学习一 常用语句

    操作系统为windows  1 启动关闭mysql服务 //windows mysqld --console //开启mysql服务 mysqladmin -uroot shutdown //关闭my ...

  9. VC++常用数据类型

    原文地址:https://www.cnblogs.com/yincheng01/archive/2008/12/31/2213386.html 一.              VC常用数据类型列表 二 ...

随机推荐

  1. @Mapper注解在springboot中无法注入

    问题① @Mapper注解报红无法注入 方法 在pom文件中添加依赖

  2. 实用的 Python 包 —— 使用 win32 的剪贴板

    1. usage >> import win32clipboard >> win32clipboard.OpenClipboard() >> win32clipbo ...

  3. powershell《语音报警系统》

    用powershell实现:“倩女幽魂姥姥”版<语音报警系统> ------[第一章 前言]------ win7,及以上版本中,是自带语音库的,系统自带一套女声中文库,一套女声英文库.用 ...

  4. 关于ajax访问express服务器的跨域问题

    在学习es6的时候用promise封装了一个ajax <script type="text/javascript"> function getNews(URL) { l ...

  5. angular路由(自带路由篇)

    一.angular路由是什么? 为了实现SPA多视图的切换的效果,其原理可简述为每个 URL 都有对应的视图和控制器.所以当我们给url后面拼上不同的参数就能通过路由实现不同视图的切换. 二.文件总览 ...

  6. php 根据html table生成excel文件

    <?php /* *处理Excel导出 *@param $datas array 设置表格数据 *@param $titlename string 设置head *@param $title s ...

  7. Tomcat之虚拟主机配置以及web应用配置

    Tomcat之虚拟主机配置以及web应用配置 Tomcat文件夹结构例如以下: bin ---- 启动和关闭须要的bat文件所在的文件夹 conf --- 配置文件夹 lib ---  tomcat执 ...

  8. HTTP (httpwebrequest)

    1.GET请求: public static string Get(string url) { string buffer = ""; try { HttpWebRequest r ...

  9. EasyUI——DataGrid中嵌入Radio

    前一篇博客写到项目中的广告位管理,当时没有写到今天的问题,这个问题当时也是困扰我好久. 经过自己的努力和同志们的帮助,最后最终解决. 实现要求把全部的广告位后面的单选button设成一组,目的是一个广 ...

  10. RelativeLayout-属性大全

    // 相对于给定ID控件 <!--将该控件的底部置于给定ID的控件之上--> android:layout_above <!--将该控件的底部置于给定ID的控件之下--> an ...