Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can I make a modeless topmost for the desktop ? Pin
yarp18-Oct-05 4:03
yarp18-Oct-05 4:03 
AnswerRe: How can I make a modeless topmost for the desktop ? Pin
Iain Clarke, Warrior Programmer18-Oct-05 4:25
Iain Clarke, Warrior Programmer18-Oct-05 4:25 
GeneralRe: How can I make a modeless topmost for the desktop ? Pin
yarp18-Oct-05 5:47
yarp18-Oct-05 5:47 
AnswerRe: How can I make a modeless topmost for the desktop ? Pin
Arman S.18-Oct-05 10:35
Arman S.18-Oct-05 10:35 
AnswerRe: How can I make a modeless topmost for the desktop ? Pin
S Douglas18-Oct-05 22:50
professionalS Douglas18-Oct-05 22:50 
AnswerRe: How can I make a modeless topmost for the desktop ? Pin
yarp20-Oct-05 6:19
yarp20-Oct-05 6:19 
QuestionAccess Violation Error Pin
nripun18-Oct-05 3:50
nripun18-Oct-05 3:50 
AnswerRe: Access Violation Error Pin
David Crow18-Oct-05 3:57
David Crow18-Oct-05 3:57 
nripun wrote:
The above stmt produced error.


What error?

nripun wrote:
CButton *pButton;
pButton = (CButton *) this->GetDlgItem(IDC_RADIOBUTTON1);
pButton->SetCheck(BST_CHECKED);

... and it worked fine.


Perhaps it only appeared to work?

nripun wrote:
... but it produced Access Violation Error


Are you trying to do this before CDialog::OnInitDialog() is called?

nripun wrote:
Why do i have to use GetDlgItem() to set/enable or do anything on the buttons inside the OnInitDlg() but neednt do it in other functions?


You don't. GetDlgItem() is rarely, if ever, needed.


"Take only what you need and leave the land as you found it." - Native American Proverb


GeneralRe: Access Violation Error Pin
Chris Losinger18-Oct-05 4:03
professionalChris Losinger18-Oct-05 4:03 
GeneralRe: Access Violation Error Pin
David Crow18-Oct-05 4:43
David Crow18-Oct-05 4:43 
GeneralRe: Access Violation Error Pin
Chris Losinger18-Oct-05 4:50
professionalChris Losinger18-Oct-05 4:50 
GeneralRe: Access Violation Error Pin
nripun18-Oct-05 5:21
nripun18-Oct-05 5:21 
GeneralRe: Access Violation Error Pin
Rage18-Oct-05 5:43
professionalRage18-Oct-05 5:43 
GeneralRe: Access Violation Error Pin
nripun19-Oct-05 0:45
nripun19-Oct-05 0:45 
GeneralRe: Access Violation Error Pin
Rage18-Oct-05 5:47
professionalRage18-Oct-05 5:47 
QuestionRe: Access Violation Error Pin
David Crow18-Oct-05 5:50
David Crow18-Oct-05 5:50 
Questiontime help pleas Pin
Gapilazo18-Oct-05 3:18
Gapilazo18-Oct-05 3:18 
AnswerRe: time help pleas Pin
Calc2018-Oct-05 3:44
Calc2018-Oct-05 3:44 
AnswerRe: time help pleas Pin
vikas amin18-Oct-05 3:45
vikas amin18-Oct-05 3:45 
QuestionRe: time help pleas Pin
David Crow18-Oct-05 3:50
David Crow18-Oct-05 3:50 
QuestionCString memory leak Pin
mails_aphale18-Oct-05 2:50
mails_aphale18-Oct-05 2:50 
AnswerRe: CString memory leak Pin
prasad_som18-Oct-05 3:02
prasad_som18-Oct-05 3:02 
GeneralRe: CString memory leak Pin
mails_aphale18-Oct-05 3:48
mails_aphale18-Oct-05 3:48 
AnswerRe: CString memory leak Pin
vikas amin18-Oct-05 3:51
vikas amin18-Oct-05 3:51 
GeneralRe: CString memory leak Pin
mails_aphale18-Oct-05 18:52
mails_aphale18-Oct-05 18:52 

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.