1

我以前的程序中有这个工作,当我的硬盘驱动器崩溃时丢失了。

我依稀记得我是怎么做到的,但在google或msdn上都找不到任何解决方案。

case WM_DRAWITEM: {

  // pointer to items draw structure and the id
  LPDRAWITEMSTRUCT pDIS = (LPDRAWITEMSTRUCT)lParam;
  int ctlResID = pDIS->CtlID;

 if (ctlResID == IDC_TEST) {
     // button drawn here to pDIS->hDC // this works fine
     // now I want to draw the button differently if it is in its down state (holding the button down or w/e)
 }

是我所拥有的,我想我记得 draw item 结构中的一个值,但我在网上找不到任何关于它的信息。

有谁碰巧知道该怎么做?

谢谢。

4

0 回答 0