VC常见问题三.docVIP

  • 2
  • 0
  • 约1.15万字
  • 约 10页
  • 2017-02-09 发布于重庆
  • 举报
VC常见问题三

(71)?我怎样才能建立一个等待光标? 调?用?BeginWaitCursor?函?数?来?启?动?等?待?光?标,调?用?EndWaitCursor?函?数?来?结?束?等?待?光?标。要?注?意,二?者?都?要?调?用?app?的?成?员?函?数,如?下?所?示: AfxGetApp()-BeginWaitCursor(); //?要做的事 AfxGetApp()-EndWaitCursor(); (72)?我在MDI框架中有个?form?视窗。它有个取消按钮,我需要当用户按取消按钮时可关闭form视窗。我应该如何关闭该文档? 调?用?OnCloseDocument?函?数。 (73)?如何访问桌面窗口 静态函数CWnd::?GetDesktopWindow?返回桌面窗口的指针。下例说明了MFC函数CFrameWnd::BeginModalStae是如何使用该函数进入内部窗口列表的。 void?CFrameWnd::BeginModalState?() { … //first?count?all?windows?that?need?to?be?disabled UINT?nCount=0 HWND?hWnd=?::?GetWindow?(::?GetDesktopWindow(),?GW_CHILD) while?(hWnd!=NULL) { if?(::?IsWindow

文档评论(0)

1亿VIP精品文档

相关文档