[問題] Control has no parent window
使用 BCB 製作元件 TMyOpengl 時,繼承 TPanel
想在使用者建立元件時取得自己的 Handel
於是在
__fastcall TMyOpengl::TMyOpengl(TComponent* Owner){
hDC = GetDC(this->Handle);
}
到目前為止都可以編譯、安裝元件
但使用者拖曳元件至 Form 時就會跳出
http://i.imgur.com/aRLK5gn.png

請問有沒有解決的方法?
不然就要使用者自己輸入指令再去做設定(這樣有點不完美)
--
我是麵T,哩賀
http://ppt.cc/-eS5
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.171.106.171
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1428672845.A.0AF.html
→
04/13 01:33, , 1F
04/13 01:33, 1F
→
04/13 01:35, , 2F
04/13 01:35, 2F
→
04/13 01:36, , 3F
04/13 01:36, 3F
→
04/13 01:36, , 4F
04/13 01:36, 4F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章