Click here to Skip to main content
15,881,852 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Accessing VB Com collection Item Pin
Anonymous5-Jul-05 15:39
Anonymous5-Jul-05 15:39 
GeneralRe: Accessing VB Com collection Item Pin
Anonymous5-Jul-05 15:39
Anonymous5-Jul-05 15:39 
GeneralRe: Accessing VB Com collection Item Pin
Jose Lamas Rios5-Jul-05 17:06
Jose Lamas Rios5-Jul-05 17:06 
GeneralRe: Accessing VB Com collection Item Pin
hulinning10-Jul-05 5:00
hulinning10-Jul-05 5:00 
QuestionHow to use CScrollBar from a template? Pin
IlanTal1-Jul-05 8:47
IlanTal1-Jul-05 8:47 
AnswerRe: How to use CScrollBar from a template? Pin
Cedric Moonen1-Jul-05 9:20
Cedric Moonen1-Jul-05 9:20 
GeneralRe: How to use CScrollBar from a template? Pin
IlanTal2-Jul-05 19:12
IlanTal2-Jul-05 19:12 
AnswerRe: How to use CScrollBar from a template? Pin
Jose Lamas Rios1-Jul-05 9:23
Jose Lamas Rios1-Jul-05 9:23 
IlanTal wrote:
I want to have a scrollbar in a dialog box, so I drag it in at design time. Then I want to attach this to a control m_myScroll.
My problem is that I don't know what to do with the Create function.


You don't need to call Create directly. Just add a DDX_Control for it in your dialog's DoDataExchange implementation:

void YourDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(YourDialog)
	DDX_Control(pDX, IDC_MYSCROLL, m_myScroll);
	//}}AFX_DATA_MAP
}


This gets called during dialog initialization (CDialog::OnInitDialog) and does all the work for you.


--
jlr
http://jlamas.blogspot.com/[^]
Generalclipping child windows Pin
nt231-Jul-05 7:29
nt231-Jul-05 7:29 
GeneralRe: clipping child windows Pin
John R. Shaw2-Jul-05 19:05
John R. Shaw2-Jul-05 19:05 
Generaltheme Pin
Lampros Giampouras1-Jul-05 6:34
Lampros Giampouras1-Jul-05 6:34 
GeneralRe: theme Pin
Alexander M.,1-Jul-05 6:57
Alexander M.,1-Jul-05 6:57 
GeneralRe: theme Pin
Lampros Giampouras1-Jul-05 9:21
Lampros Giampouras1-Jul-05 9:21 
GeneralRe: theme Pin
Alexander M.,1-Jul-05 10:56
Alexander M.,1-Jul-05 10:56 
GeneralRe: theme Pin
badal_akr4-Jul-05 22:07
badal_akr4-Jul-05 22:07 
QuestionHow can I handle message of a class that drived from COleControl? Pin
Behzad Ebrahimi1-Jul-05 6:30
Behzad Ebrahimi1-Jul-05 6:30 
AnswerRe: How can I handle message of a class that drived from COleControl? Pin
Jose Lamas Rios1-Jul-05 8:37
Jose Lamas Rios1-Jul-05 8:37 
Generalscroll bar problem Pin
softtec1-Jul-05 6:22
softtec1-Jul-05 6:22 
GeneralRe: scroll bar problem Pin
David Crow1-Jul-05 7:02
David Crow1-Jul-05 7:02 
GeneraltioOnSize Question Pin
jerry1211a1-Jul-05 6:01
jerry1211a1-Jul-05 6:01 
GeneralRe: tioOnSize Question Pin
toxcct1-Jul-05 6:06
toxcct1-Jul-05 6:06 
GeneralRe: tioOnSize Question Pin
ThatsAlok1-Jul-05 19:06
ThatsAlok1-Jul-05 19:06 
GeneralDirectShow filter issue Pin
Alexander M.,1-Jul-05 5:33
Alexander M.,1-Jul-05 5:33 
GeneralRe: DirectShow filter issue Pin
Alexander M.,1-Jul-05 10:52
Alexander M.,1-Jul-05 10:52 
GeneralStatusBar problem Pin
AnsGe1-Jul-05 4:22
AnsGe1-Jul-05 4:22 

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.