a starting sample of paint

原创 2004年08月29日 10:37:00

void CStatisticsDlg::OnPaint()
{
 CPaintDC dc(this); // device context for painting
 // TODO: 在此处添加消息处理程序代码
 // 不为绘图消息调用 CDialog::OnPaint()
 
 // masaka: learn to show the background bitmap
 // load
 CBitmap bmpBk;
 bmpBk.LoadBitmap(IDB_BITMAP_TEST);
 
 // get info
 BITMAP bmpInfo;
 bmpBk.GetBitmap(&bmpInfo);
 CRect wndRect;
 this->GetClientRect(&wndRect);

 // create CDC in memory
 CDC dcMemory;
 dcMemory.CreateCompatibleDC(&dc);

 // select in the bitmap
 CBitmap *pOldBitmap = dcMemory.SelectObject(&bmpBk);
 // show it!
 //dc.BitBlt(0, 0, wndRect.Width(), wndRect.Height(), &dcMemory, 0, 0, SRCCOPY);
 dc.StretchBlt(0, 0, wndRect.Width(), wndRect.Height(), &dcMemory, 0, 0, bmpInfo.bmWidth, bmpInfo.bmHeight, SRCCOPY);
   
 // restore
 dcMemory.SelectObject(pOldBitmap);

}

Denied starting an intent without a user gesture

前端 写了个 网页替换replace 方法。发现在Android 7.0系统不执行,而Android 5.1 系统上却可以正常运行。webview并没有做复杂的功能只是有俩个js交互的方法。 看到lo...
  • v_oo_v
  • v_oo_v
  • 2017-11-10 15:02:35
  • 338

A problem occurred starting process 'command aidl'

环境:Ubuntu 16.04(64位) 今天在 jenkins 上构建android项目的时候,报错了:11:56:42 * What went wrong: 11:56:42 Execution...
  • u014115673
  • u014115673
  • 2017-05-04 12:15:16
  • 1566

denied starting an intent without a user gesture

这是在android中的webview加载本地html页面时产生的问题, 原本网页时可以显示的,但是我在网页中加入了就产生了这个问题。 解决方案:将webView.setWebChromeClie...
  • GISuuser
  • GISuuser
  • 2017-10-11 11:59:24
  • 522

Starting Tomcat v7.0 Server at localhost' has encountered a problem. Server

今天我只是改了一下controller,然后去重启tomcat,然后就报这个错误了, Starting Tomcat v7.0 Server at localhost' has encountere...
  • u010924894
  • u010924894
  • 2016-03-18 16:22:48
  • 6135

使用Android Studio编译Fresco

从github下载下来之后运行,遇到的问题就是下面这个Error:Execution failed for task ':imagepipeline:ndk_build_bitmaps'. > A p...
  • a631855639
  • a631855639
  • 2015-07-13 17:54:42
  • 7822

android studio提示A problem occurred starting process 'command d:\...ndk-bundle\ndk-build.cmd'

A problem occurred starting process 'command d:\...ndk-bundle\ndk-build.cmd' 根据提示分析,可能是Sdk配置路径错误,查看...
  • wlc520123
  • wlc520123
  • 2017-11-06 13:25:46
  • 702

A problem occurred starting process 'command '/home/jason/Android/Sdk/build-tools/23.0.3/aapt

A problem occurred starting process 'command '/home/jason/Android/Sdk/build-tools/23.0.3/aapt
  • jacke121
  • jacke121
  • 2017-04-11 14:11:49
  • 1113

org.apache.tomcat.util.http.Parameters processParameters 信息: Invalid chunk starting at byte [81] and

提示信息:org.apache.tomcat.util.http.Parameters processParameters 信息: Invalid chunk starting at byte [81...
  • qq846452787
  • qq846452787
  • 2016-05-18 08:42:44
  • 1739

tomcat控制台错误_http请求参数格式错误

2012-7-6 10:56:01 org.apache.tomcat.util.http.Parameters processParameters 信息: Invalid chunk starti...
  • kongls08
  • kongls08
  • 2012-12-12 16:54:05
  • 15749
收藏助手
不良信息举报
您举报文章:a starting sample of paint
举报原因:
原因补充:

(最多只允许输入30个字)