Click here to Skip to main content
15,917,731 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: email and www link on a dialog Pin
Steve L.22-Jul-02 9:22
Steve L.22-Jul-02 9:22 
GeneralRe: email and www link on a dialog Pin
d.schaeflein22-Jul-02 22:48
d.schaeflein22-Jul-02 22:48 
GeneralC/C++ problem. Pin
Michael Liu22-Jul-02 8:38
Michael Liu22-Jul-02 8:38 
GeneralRe: C/C++ problem. Pin
Bill Wilson22-Jul-02 8:46
Bill Wilson22-Jul-02 8:46 
GeneralRe: C/C++ problem. Pin
realfly22-Jul-02 15:24
realfly22-Jul-02 15:24 
GeneralRe: C/C++ problem. Pin
Alexandru Savescu22-Jul-02 21:47
Alexandru Savescu22-Jul-02 21:47 
GeneralCSliderCtrl help Pin
JennyP22-Jul-02 8:31
JennyP22-Jul-02 8:31 
GeneralRe: CSliderCtrl help Pin
benjymous22-Jul-02 22:39
benjymous22-Jul-02 22:39 
The easiest thing to do would be to put a check on the slider's hWnd member:

if( m_SliderCtrl.m_hWnd == NULL )
{
  m_SliderCtrl.SetRange(...);
}


That'll stop it asserting.
You need to make sure that the OnInitDialog member has been called first (by the framework, that is, don't call it yourself.)

I've also found that doing an UpdateData( FALSE ); call before you first access the control makes sure that the control variable is actually initialised properly

--
Help me! I'm turning into a grapefruit!
GeneralRe: CSliderCtrl help Pin
JennyP23-Jul-02 6:45
JennyP23-Jul-02 6:45 
GeneralRe: CSliderCtrl help Pin
benjymous23-Jul-02 11:10
benjymous23-Jul-02 11:10 
GeneralICMP Messages Pin
orcun colak22-Jul-02 8:14
orcun colak22-Jul-02 8:14 
Questioninformation for IExplorer plugins? Pin
OmarLodhi22-Jul-02 7:50
OmarLodhi22-Jul-02 7:50 
Generaldisabling menus Pin
SilentWarrior22-Jul-02 7:38
SilentWarrior22-Jul-02 7:38 
GeneralRe: disabling menus Pin
Shog922-Jul-02 12:56
sitebuilderShog922-Jul-02 12:56 
GeneralRe: disabling menus Pin
SilentWarrior23-Jul-02 7:31
SilentWarrior23-Jul-02 7:31 
GeneralRe: disabling menus Pin
Shog923-Jul-02 8:59
sitebuilderShog923-Jul-02 8:59 
Questiongaining access to 16-bit process space ? Pin
bisserke22-Jul-02 7:29
bisserke22-Jul-02 7:29 
QuestionLaunch a new instance from SDI app ? Pin
yarp22-Jul-02 6:15
yarp22-Jul-02 6:15 
GeneralModifyStyle Pin
Hans Ruck22-Jul-02 6:02
Hans Ruck22-Jul-02 6:02 
GeneralRe: ModifyStyle Pin
Paul M Watt22-Jul-02 6:27
mentorPaul M Watt22-Jul-02 6:27 
GeneralRe: ModifyStyle Pin
Hans Ruck22-Jul-02 6:43
Hans Ruck22-Jul-02 6:43 
GeneralRe: ModifyStyle Pin
Paul M Watt22-Jul-02 8:33
mentorPaul M Watt22-Jul-02 8:33 
Questionclassview info not accessible ??? Pin
ns22-Jul-02 5:38
ns22-Jul-02 5:38 
AnswerRe: classview info not accessible ??? Pin
Renjith Ramachandran22-Jul-02 6:06
Renjith Ramachandran22-Jul-02 6:06 
GeneralRe: classview info not accessible ??? Pin
ns22-Jul-02 6:39
ns22-Jul-02 6:39 

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.