hi!
我用 GRID.VBX 放到 dialog box 上
我想直接 keyin 一些東西到 cell(i,j)
先 GetProp("ColPos",cpos,j) 及 GetProp("RowPos",rpos,i)
在 rpos, cpos 上貼上一個 single line 的 TEdit , 可是 出來的
Cell 位置是 32 bit (twips), 如何轉成 pixel ??????
我用 TDC 的 GetDeviceCaps(LOGPIXELSX)*cpos/1440
算出來的 pixel 位置不對 ...
請問有沒有比較好的 API 來轉 TWIPS???
或者可在 Grid 上修改資料的方法(除了 直接 Handler KeyPress 的Event外)
????
又 我如何使游標出現在 Grid 上, 我在 我的 TDialog 的 SetupWindow()裡加
EnableKBHandler() 都沒用??!! why ??????
Thanx!!!
--
※ Origin: 貓頭鷹的老巢 ◆ From: 140.116.82.132