|
초짜 님이 쓰신 글 :
: for ( int i = 0; i < m_pPnlWordJain->ControlCount; i++ ) {
: if ( m_pPnlWordJain->Controls[i]->ClassNameIs(nameString) ) {
: TFlatGroupBox *pBox = dynamic_cast<TFlatGroupBox *>( m_pPnlWordJain->Controls[i] );
: for ( int j = 0; j < pBox->ControlCount; j++ ) {
: TFlatRadioButton *pBox2 = dynamic_cast<TFlatRadioButton *>( pBox->Controls[j] );
: if ( pBox2->Checked )
: aSelectIndex = aSelectIndex + j + "_";
: }
: }
: }
:
: 우선은 위와 같은 식으로 처리를 했는데..
:
: 좋은 알고리즘이나 방법 있으시면 가르쳐주세요~~
라스트 서펜트면... 경신이냐??
아래는 델파이코드다. 알아서 씨빌더로 바꿔써라..ㅋㅋㅋ
빌더 안한지 거의 2년 되가기땜에 다 까묵었다.ㅠㅠ
procedure TForm1.Button1Click(Sender: TObject);
var i : integer;
begin
listbox1.Clear;
for i:=0 to ComponentCount - 1 do
if Components[i] is TCheckBox then
if TCheckBox(Components[i]).checked then
listbox1.Items.Add(TCheckBox(Components[i]).caption);
end;
|