🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #309022

Jak sprawdzić jakiej klasy jest obiekt (wskaźnik) ?

#309022
From: Borneq
Date: Mon, 06 Feb 2017 10:53
9 lines
1403 bytes
W Pascalu to było "is".
Uczę się teraz wxWidgets. Lista z kolumnami to wxListView:wxListCtrl a 
niestandardowa z checkboxami to wxCheckedListCtrl:wxListCtrl.
Mam jedną funkcję do wypełniania obu typów wołając InsertItem. Ale samo 
wypełnienie nawet dobrze działa, tylko potem dla listy z checkboxami 
jest źle gdy są eventy klikania na niej. Dlatego że prawdopodobnie 
InsertItem nie jest wirtualna.
Więc chciałbym sprawdzić obiekt list, czy jest wxListView czy 
wxCheckedListCtrl i specjalnie wywołać InsertItem.
Technical Details
Message-ID: <o79kim$psa$1@node1.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Borneq <borneq@antyspam.hidden.pl>
Newsgroups: pl.comp.lang.c
Subject: Jak sprawdzić jakiej klasy jest obiekt
 (wskaźnik) ?
Date: Mon, 6 Feb 2017 11:53:10 +0100
Organization: ATMAN - ATM S.A.
Lines: 9
Message-ID: <o79kim$psa$1@node1.news.atman.pl>
NNTP-Posting-Host: 91.239.205.105
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1486378390 26506 91.239.205.105 (6 Feb 2017 10:53:10 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Mon, 6 Feb 2017 10:53:10 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
X-Mozilla-News-Host: news://news.atman.pl:119
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit