惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Privacy & Cybersecurity Law Blog
V
V2EX
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
MongoDB | Blog
MongoDB | Blog
P
Privacy International News Feed
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
K
Kaspersky official blog
S
Secure Thoughts
T
Tenable Blog
Security Latest
Security Latest
The Cloudflare Blog
S
Security @ Cisco Blogs
H
Heimdal Security Blog
aimingoo的专栏
aimingoo的专栏
TaoSecurity Blog
TaoSecurity Blog
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
Schneier on Security
Schneier on Security
Webroot Blog
Webroot Blog
G
Google Developers Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Scott Helme
Scott Helme
IT之家
IT之家
Latest news
Latest news
The Hacker News
The Hacker News
C
Check Point Blog
T
The Exploit Database - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
N
News | PayPal Newsroom
Forbes - Security
Forbes - Security
P
Palo Alto Networks Blog
S
Security Affairs
S
Securelist
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
C
Cybersecurity and Infrastructure Security Agency CISA
A
About on SuperTechFans

博客园 - finema

如何使用 RESTClient 调试微信支付接口 关于HTML使用ComDlg ActiveX 无法弹出相应对话框的问题1 JAX-WS 访问SSL 的WebService 老是HTTP transport error: Connection refused错误的解决办法。 [转]为什么开发人员工作10多年了还会迷茫?没有安全感? VC项目配置详解(转) 不使用动态sql语句,正确书写case when中的null处理 [转] 请不要做浮躁的嵌入式系统工程师 [转]一些Eclipse开发用到的快捷键 Tomcat 6.0.24 不兼容的APR版本问题 【转】看清自己究竟要什么 [转]7大原因,决定去留 [转]Android系统源代码情景分析:基础知识 关于iReport 导出文件的问题 谁是企业最需要的人(链接) IE 和 FireFox 对 DOM 支持的差异 【转】什么是AlphaBlend技术 软件开发精品教程或文章 【转】WinCE读写XML文件 理解windows的移动原点
WinCE 不支持 ON_WM_SHOWWINDOW 事件的变通处理
finema · 2011-05-05 · via 博客园 - finema

这2天用MFC在编写一个WinCE6 的应用程序,本想在窗口显示事件(WM_SHOWWINDOW)中做一下特殊处理,但是代码加上了,但是没有响应的事件触发,在网上google了好久,最后在MSDN中确认,WinCE 不支持 ON_WM_SHOWWINDOW 事件。

通过MSDN查WinCE的文档,可以通过使用 ON_WM_WINDOWPOSCHANGED 事件来 达到我的目的。

在 ON_WM_WINDOWPOSCHANGED 事件处理函数中,有个WINDOWPOS 结构,当中有个falgs的字段可以指明是什么原因引发该事件的。

 
以下代码演示了我原本要的 ON_WM_SHOWWINDOW 事件

void CXXXDlg::OnWindowPosChanged(WINDOWPOS* lpwndpos)
{
 //CDialog::OnWindowPosChanged(lpwndpos);
  
 if (lpwndpos->flags & SWP_SHOWWINDOW) 

 {
   //处理代码

 }

 }