当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·关于pascal的问题    »显示摘要«
    摘要: 作业:用pascal编一个词法分析器和语法分析器。 ......
    摘要: 用linefromchar(-1);可获得当前行,但如何才能获取光标相对于当前行的偏移量? 谢谢。 ......


如何得到最大化最小化消息。

有相应的消息吗?

NO.1   作者: tigerfox

WM_SYSCOMMAND

NO.2   作者: wistaria

你   应   该   截   取   WM_SYSCOMMAND消   息   。   该   消   息   参   数   为   :    
          uCmdType   =   wParam;   //   type   of   system   command   requested    
          xPos   =   LOWORD(lParam);   //   horizontal   postion,   in   screen   coordinates    
          yPos   =   HIWORD(lParam);   //   vertical   postion,   in   screen   coordinates    
          其   中   uCmdType表   示   用   户   的   选   择   :    
          SC_CLOSE   Closes   the   window.    
          SC_CONTEXTHELP   Changes   the   cursor   to   a   question   mark   with   a   pointer.   If   the   user   then   clicks   a   control   in   the   dialog   box,   the   control   receives   a   WM_HELP   message.    
          SC_DEFAULT   Selects   the   default   item;   the   user   double-clicked   the   System   menu.    
          SC_HOTKEY   Activates   the   window   associated   with   the   application-specified   hot   key.   The   low-order   word   of   lParam   identifies   the   window   to   activate.    
          SC_HSCROLL   Scrolls   horizontally.    
          SC_KEYMENU   Retrieves   the   System   menu   as   a   result   of   a   keystroke.    
          SC_MAXIMIZE   (or   SC_ZOOM)   Maximizes   the   window.    
          SC_MINIMIZE   (or   SC_ICON)   Minimizes   the   window.    
          SC_MONITORPOWER   Windows   95   only:   Sets   the   state   of   the   display.   This   command   supports   devices   that   have   power-saving   features,   such   as   a   battery-powered   personal   computer.    
          SC_MOUSEMENU   Retrieves   the   System   menu   as   a   result   of   a   mouse   click.    
          SC_MOVE   Moves   the   window.    
          SC_NEXTWINDOW   Moves   to   the   next   window.    
          SC_PREVWINDOW   Moves   to   the   previous   window.    
          SC_RESTORE   Restores   the   window   to   its   normal   position   and   size.    
          SC_SCREENSAVE   Executes   the   screen   saver   application   specified   in   the   [boot]   section   of   the   SYSTEM.INI   file.    
          SC_SIZE   Sizes   the   window.    
          SC_TASKLIST   Executes   or   activates   Windows   Task   Manager.    
          SC_VSCROLL   Scrolls   vertically.    
 

NO.3   作者: dnyz

WM_ONSYSCOMMAND


    摘要: 哪里有vb数据库方面的电子书下载啊 你们认为比较好的 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE