日积月累

问题:ShellExecute(NULL, "open", "mailto:who@mail.neu.edu.cn?subject=Hello&Body=This is/n a test", NULL, NULL ,SW_SHOWNORMAL); 换行符不起作用.

结论:URL编码客户端浏览器向服务器发送数据采用编码的形式进行。该编码就是CRL编码.把换行符改成%0a.

 

you   shouldn't   be   using   that   number   for   messages   in   MFC,   try    
  #define   USER_MESSAGE   (WM_USER+100)  
   
  see   the   following   article   for   details:  
  http://msdn.microsoft.com/library/en-us/winui/messques_5180.asp?frame=true  
   
  #define   WM_USER               0x0400  
  #define   WM_APP                 0x8000  
   
  Range   Meaning  
  0   through   WM_USER   –   1    
  Messages   reserved   for   use   by   the   system.    
   
  WM_USER   through   0x7FFF    
  Integer   messages   for   use   by   private   window   classes.    
   
  WM_APP   through   0xBFFF    
  Messages   available   for   use   by   applications.    
   
  0xC000   through   0xFFFF    
  String   messages   for   use   by   applications.    
   
  Greater   than   0xFFFF    
  Reserved   by   the   system   for   future   use.    
  ......  
  Message   numbers   in   the   fourth   range   (0xC000   through   0xFFFF)   are   defined   at   run   time   when   an   application   calls   the   RegisterWindowMessage   function   to   retrieve   a   message   number   for   a   string.   All   applications   that   register   the   same   string   can   use   the   associated   message   number   for   exchanging   messages.   The   actual   message   number,   however,   is   not   a   constant   and   cannot   be   assumed   to   be   the   same   between   different   sessions.  

WM_USER   0x0400  
  WM_APP     0x8000  
   
  WM_USER   比较老(Win3.x   就有了),一般提供给特定的控件定义自己的控件消息。之后因为控件种类逐渐增多,以至于用   WM_USER   +   XX   来定义某个进程内部某些窗体之间传递的消息已经不合适了,M$   建议 这类消息最好使用   WM_APP   +   XX

 

添加全局变量

在一个cpp中定义, 在一个h中再次extern

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值