Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Real Problem in Listview dealing with tons of data Pin
JoneLe8621-Aug-13 11:21
JoneLe8621-Aug-13 11:21 
AnswerRe: Real Problem in Listview dealing with tons of data Pin
enhzflep21-Aug-13 11:06
enhzflep21-Aug-13 11:06 
GeneralRe: Real Problem in Listview dealing with tons of data Pin
JoneLe8621-Aug-13 11:22
JoneLe8621-Aug-13 11:22 
AnswerRe: Real Problem in Listview dealing with tons of data Pin
pasztorpisti21-Aug-13 11:18
pasztorpisti21-Aug-13 11:18 
GeneralRe: Real Problem in Listview dealing with tons of data Pin
JoneLe8621-Aug-13 11:22
JoneLe8621-Aug-13 11:22 
GeneralRe: Real Problem in Listview dealing with tons of data Pin
xcal22-Aug-13 19:11
xcal22-Aug-13 19:11 
QuestionHow to initialize property page's dialog? SOLVED Pin
Vaclav_21-Aug-13 4:15
Vaclav_21-Aug-13 4:15 
AnswerRe: How to initialize property page's dialog? Pin
Freak3022-Aug-13 3:35
Freak3022-Aug-13 3:35 
There are at least 3 ways you can handle this. Which way you choose depends on what you need.

If you only need one resource, you assign it to CBasePropertyPage. In this case you take CBasePropertyPage::IDD and pass it to CPropertyPage. For CMyPropertyPage11 you don't need an initializer in that case. You can use the controlls on the page directly.

If every derived property page class needs its own resource you need to decide whether you really want/need to derive CBasePropertyPage from CPropertyPage.

If you don't need access to the GUI from that class it will probably be easier to just define it as stand alone and derive your property pages from CPropertyPage and CBasePropertyPage. This way you can keep your original initialization.

If for some reason you need to have property page funtionality directly in CBasePropertyPage, you need to change CBasePropertyPage's constuctor to take an UINT. Then you initialize like that:
C++
CMyPropertyPage11::CMyPropertyPage11() : CBasePropertyPage(CMyPropertyPage11::IDD)
{
}
CBasePropertyPage::CBasePropertyPage(UINT idd) : CPropertyPage(idd)
{
}

To access the controls on the page from CBasePropertyPage you need pure virtual functions that you override in the derived class(es).
The good thing about pessimism is, that you are always either right or pleasently surprised.

GeneralRe: How to initialize property page's dialog? Pin
Vaclav_22-Aug-13 5:26
Vaclav_22-Aug-13 5:26 
GeneralRe: How to initialize property page's dialog? Pin
Vaclav_22-Aug-13 6:52
Vaclav_22-Aug-13 6:52 
GeneralRe: How to initialize property page's dialog? Pin
Vaclav_24-Aug-13 5:08
Vaclav_24-Aug-13 5:08 
QuestionHow to make the camera rotate with the player? Pin
LittleJackFlash21-Aug-13 3:19
LittleJackFlash21-Aug-13 3:19 
AnswerRe: How to make the camera rotate with the player? Pin
pasztorpisti21-Aug-13 4:05
pasztorpisti21-Aug-13 4:05 
GeneralRe: How to make the camera rotate with the player? Pin
LittleJackFlash21-Aug-13 22:00
LittleJackFlash21-Aug-13 22:00 
GeneralRe: How to make the camera rotate with the player? Pin
Jonathan Davies21-Aug-13 22:38
Jonathan Davies21-Aug-13 22:38 
GeneralRe: How to make the camera rotate with the player? Pin
LittleJackFlash21-Aug-13 23:25
LittleJackFlash21-Aug-13 23:25 
GeneralRe: How to make the camera rotate with the player? Pin
Jonathan Davies21-Aug-13 23:46
Jonathan Davies21-Aug-13 23:46 
GeneralHow to write Benford’s Law in C++ Need Help Pin
Member 1022170020-Aug-13 16:55
Member 1022170020-Aug-13 16:55 
QuestionRe: How to write Benford’s Law in C++ Need Help Pin
Richard MacCutchan20-Aug-13 20:10
mveRichard MacCutchan20-Aug-13 20:10 
GeneralRe: How to write Benford’s Law in C++ Need Help Pin
BadKarma20-Aug-13 21:30
BadKarma20-Aug-13 21:30 
SuggestionRe: How to write Benford’s Law in C++ Need Help Pin
David Crow21-Aug-13 6:26
David Crow21-Aug-13 6:26 
QuestionCTabCtrl header colour anomaly in CPaneDialog Pin
D G McKay20-Aug-13 2:07
D G McKay20-Aug-13 2:07 
AnswerRe: CTabCtrl header colour anomaly in CPaneDialog Pin
D G McKay2-Sep-13 0:14
D G McKay2-Sep-13 0:14 
QuestionWindow Position Pin
john563218-Aug-13 19:44
john563218-Aug-13 19:44 
AnswerRe: Window Position Pin
Richard MacCutchan18-Aug-13 20:56
mveRichard MacCutchan18-Aug-13 20:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.