Method 'WndProc' hides virtual method of base type 'TCustomForm' |
答題得分者是:hagar
|
pceyes
尊榮會員 發表:70 回覆:657 積分:1140 註冊:2003-03-13 發送簡訊給我 |
編譯時出現訊息: [Warning] rtbUnit1.pas(39): Method 'WndProc' hides virtual method of base type 'TCustomForm' 程式碼如下:
<textarea class="delphi" rows="10" cols="60" name="code"> public { Public declarations } procedure WndProc(var Message: TMessage); end; : procedure TForm1.WndProc(var Message: TMessage); begin // if (Message.Msg = wInitDialogMessage)and (inttostr(Message.wParam) <> inttostr(Handle)) then begin ReplyMessage(0); case Message.lParam of wpBeClose : begin form1.close; end;(* for close *) end; // case end; // if inherited WndProc(Message); end; </textarea> 特殊情形: delphi5 Enterprise 使用quickreport 如無使用Quickreport不會出現Warning
------
努力會更接近成功 |
hagar
版主 發表:143 回覆:4056 積分:4445 註冊:2002-04-14 發送簡訊給我 |
|
pceyes
尊榮會員 發表:70 回覆:657 積分:1140 註冊:2003-03-13 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |