Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Again trouble with sorting COleSafeArray ! :) Pin
bosfan7-Aug-06 21:08
bosfan7-Aug-06 21:08 
Questiontracking mouse movement over button Pin
Manjunath S7-Aug-06 3:13
Manjunath S7-Aug-06 3:13 
AnswerRe: tracking mouse movement over button Pin
Maximilien7-Aug-06 4:32
Maximilien7-Aug-06 4:32 
GeneralRe: tracking mouse movement over button Pin
Manjunath S7-Aug-06 5:13
Manjunath S7-Aug-06 5:13 
AnswerRe: tracking mouse movement over button Pin
Hamid_RT7-Aug-06 21:46
Hamid_RT7-Aug-06 21:46 
QuestionThe model dialog don't pop up,but it pops up after press the Alt button on the keyboard,why?How to resolve this problem? Pin
zhonglin.liang7-Aug-06 2:26
zhonglin.liang7-Aug-06 2:26 
QuestionRe: The model dialog don't pop up,but it pops up after press the Alt button on the keyboard,why?How to resolve this problem? Pin
David Crow7-Aug-06 2:36
David Crow7-Aug-06 2:36 
AnswerRe: The model dialog don't pop up,but it pops up after press the Alt button on the keyboard,why?How to resolve this problem? Pin
zhonglin.liang7-Aug-06 3:02
zhonglin.liang7-Aug-06 3:02 
Blew is my code:
CELinkConfiguratorView is the view of my SDI application,Online() is the handler message of a menu, CCBrowseOnline is the class of a model dialog.
when click the menu,the the DlgBrowse dialog should be poped up,but it didn't pop up sometimes .but it poped up after I press the Alt button on the keyboard. why?how to resolve this problem?

void CELinkConfiguratorView::OnOnline()
{
// TODO: Add your command handler code here
CELinkConfiguratorDoc* pDoc = GetDocument();
// Open the serial port

if(pDoc->ComportInfo.ubComInterface == 0)
{
CString msg;
if(!m_Port.Open(ComportNur,
ComportBr, Parity,DataBits,StopBits))
{
msg.Format ("*** Error: Can't open com port");
AfxMessageBox(msg);
return;
}

}


CBrowseOnline DlgBrowse;
DlgBrowse.m_BrowseStr = "Start Browse NetWork...";
if(DlgBrowse.DoModal() == IDOK)
{
isCanSendNew = true;
DownDirect = RST_REQ;
}
}

BOOL CBrowseOnline::OnInitDialog()
{
CDialog::OnInitDialog();
// Inial the progress bar
m_ProCheckOnline.SetRange (0, 63);
m_ProCheckOnline.SetStep (1);
m_ProCheckOnline.SetPos (0);

// start timer
SetTimer(1,100,NULL);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}

void CBrowseOnline::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
if(CurrentCtrl == 3) // upload command
{
if(CurrentMacid == 0)
{
str.Format ("Uploading module setting...");
}
else if(CurrentMacid < 63)
str.Format ("Upload Node %d from Scanner",CurrentMacid);
else
str.Format ("Upload completed.");
}
UpdateData(FALSE);
CDialog::OnTimer(nIDEvent);
}
QuestionRe: The model dialog don't pop up,but it pops up after press the Alt button on the keyboard,why?How to resolve this problem? Pin
David Crow7-Aug-06 4:25
David Crow7-Aug-06 4:25 
QuestionOnApply() Pin
SandhyaSri7-Aug-06 2:24
SandhyaSri7-Aug-06 2:24 
AnswerRe: OnApply() Pin
David Crow7-Aug-06 2:38
David Crow7-Aug-06 2:38 
QuestionDeviceIoControl function error Pin
Tushar Mahajan7-Aug-06 2:24
Tushar Mahajan7-Aug-06 2:24 
QuestionRe: DeviceIoControl function error Pin
David Crow7-Aug-06 2:46
David Crow7-Aug-06 2:46 
AnswerRe: DeviceIoControl function error Pin
Tushar Mahajan7-Aug-06 2:56
Tushar Mahajan7-Aug-06 2:56 
GeneralRe: DeviceIoControl function error Pin
David Crow7-Aug-06 3:02
David Crow7-Aug-06 3:02 
QuestionSystems DSN in VC++ Pin
Programm3r7-Aug-06 2:16
Programm3r7-Aug-06 2:16 
AnswerRe: Systems DSN in VC++ Pin
_AnsHUMAN_ 7-Aug-06 2:39
_AnsHUMAN_ 7-Aug-06 2:39 
GeneralRe: Systems DSN in VC++ Pin
Programm3r7-Aug-06 2:50
Programm3r7-Aug-06 2:50 
GeneralRe: Systems DSN in VC++ Pin
_AnsHUMAN_ 7-Aug-06 2:59
_AnsHUMAN_ 7-Aug-06 2:59 
GeneralRe: Systems DSN in VC++ Pin
Programm3r7-Aug-06 3:07
Programm3r7-Aug-06 3:07 
AnswerRe: Systems DSN in VC++ Pin
David Crow7-Aug-06 2:52
David Crow7-Aug-06 2:52 
GeneralRe: Systems DSN in VC++ Pin
Programm3r7-Aug-06 2:57
Programm3r7-Aug-06 2:57 
QuestionRe: Systems DSN in VC++ Pin
Programm3r7-Aug-06 3:36
Programm3r7-Aug-06 3:36 
AnswerRe: Systems DSN in VC++ Pin
Hamid_RT7-Aug-06 3:46
Hamid_RT7-Aug-06 3:46 
GeneralRe: Systems DSN in VC++ Pin
Programm3r7-Aug-06 3:50
Programm3r7-Aug-06 3:50 

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.