0352デフォルトの名無しさん垢版
2012/01/05(木) 01:29:02.25行数を調べるのに以下のやり方でいいのかと考えたのですがエラーがでます。
size_t abc = wxTextCtrl::TextCtrl1.GetNumberOfLines();
コンパイルすると以下のエラーがでます。
C:\Users\x\Desktop\practice\practiceMain.cpp||In member function 'void practiceFrame::OnButton2Click(wxCommandEvent&)':|
C:\Users\x\Desktop\practice\practiceMain.cpp|225|error: 'TextCtrl1' is not a member of 'wxTextCtrl'|
http://docs.wxwidgets.org/2.9.3/classwx_text_file.html
ここを見るとメンバー関数と書いているようなのですが、何か考え違いをしていると思うのですが・・
教えてください。