Click here to Skip to main content
15,912,504 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Adding a new menu option in Calendar of Pocket PC Pin
João Paulo Figueira26-Jan-04 1:06
professionalJoão Paulo Figueira26-Jan-04 1:06 
GeneralA question about displays Pin
LunaticFringe23-Jan-04 13:13
LunaticFringe23-Jan-04 13:13 
GeneralRe: A question about displays Pin
João Paulo Figueira24-Jan-04 6:53
professionalJoão Paulo Figueira24-Jan-04 6:53 
GeneralRe: A question about displays Pin
LunaticFringe28-Jan-04 23:02
LunaticFringe28-Jan-04 23:02 
GeneralPocket PC Pocket Word Pin
annum22-Jan-04 16:53
annum22-Jan-04 16:53 
GeneralRe: Pocket PC Pocket Word Pin
Mahesh Varma26-Jan-04 19:49
Mahesh Varma26-Jan-04 19:49 
GeneralRe: Pocket PC Pocket Word Pin
annum11-Feb-04 7:40
annum11-Feb-04 7:40 
GeneralMenues in Dialogs Pin
Like2Byte22-Jan-04 8:45
Like2Byte22-Jan-04 8:45 
Hi, I'm using EVC++ 3.0 to develop an iPaq using PocketPC 2002 Premium.

I have a problem with my menu on my single dialog application. I have a Menu with two selections on it: 15 Seconds and 30 Seconds.

I want to place a checkmark next to the item the user selects but I want '15 Seconds' to be checked initially. It's not working though.

Here's my OnInitDialog(). (Note: Extranious garbage removed)
BOOL CMyDialogDlg::OnInitDialog()
{
...
// TODO: Add extra initialization here
CCeCommandBar *pCommandBar = (CCeCommandBar*)m_pWndEmptyCB;
pCommandBar->InsertMenuBar(IDR_CHIPMENU);
// if( pCommandBar->IsDlgButtonChecked( ID_TIMEOUT_15SECONDS ) )
pCommandBar->CheckDlgButton( ID_TIMEOUT_15SECONDS, BST_CHECKED);
...
return TRUE; // return TRUE unless you set the focus to a control
}

The menu is there and works but I can not set a check mark next to any of the items. The IDs are correctly spelled, too. I've set a message up for clicking on '15 Seconds' and it correctly reports the state the label is in (Ie: checked or unchecked). Here:

void CMyDialogDlg::OnTimeout15seconds()
{

CCeCommandBar *pCommandBar = (CCeCommandBar*)m_pWndEmptyCB;
if( pCommandBar->IsDlgButtonChecked( ID_TIMEOUT_15SECONDS ) )
{
pCommandBar->CheckDlgButton( ID_TIMEOUT_15SECONDS, BST_UNCHECKED);
AfxMessageBox(_T("Unchecked"));
}
else
{
pCommandBar->CheckDlgButton( ID_TIMEOUT_15SECONDS, BST_CHECKED);
AfxMessageBox(_T("Checked"));
}
/**/
}


What am I doing wrong/missing? Unsure | :~
Thanks.


GeneralRe: Menues in Dialogs Pin
Like2Byte22-Jan-04 15:38
Like2Byte22-Jan-04 15:38 
QuestionApp licensing/copy protection on PDA's? Pin
LunaticFringe22-Jan-04 6:40
LunaticFringe22-Jan-04 6:40 
Questionmy app just disappers?!? Pin
slomoman21-Jan-04 0:49
slomoman21-Jan-04 0:49 
QuestionDoes Update Statement works??? Pin
Rassul Yunussov21-Jan-04 0:36
Rassul Yunussov21-Jan-04 0:36 
AnswerRe: Does Update Statement works??? Pin
João Paulo Figueira21-Jan-04 1:24
professionalJoão Paulo Figueira21-Jan-04 1:24 
QuestionHow do I get the FocusRectangle on a button? Pin
kiyoko20-Jan-04 20:23
kiyoko20-Jan-04 20:23 
AnswerRe: How do I get the FocusRectangle on a button? Pin
João Paulo Figueira20-Jan-04 22:30
professionalJoão Paulo Figueira20-Jan-04 22:30 
GeneralRe: How do I get the FocusRectangle on a button? Pin
kiyoko21-Jan-04 19:54
kiyoko21-Jan-04 19:54 
GeneralRe: How do I get the FocusRectangle on a button? Pin
João Paulo Figueira21-Jan-04 21:54
professionalJoão Paulo Figueira21-Jan-04 21:54 
GeneralRe: How do I get the FocusRectangle on a button? Pin
kiyoko24-Jan-04 21:30
kiyoko24-Jan-04 21:30 
GeneralAccess Table some problem with new columns Pin
Rassul Yunussov20-Jan-04 19:55
Rassul Yunussov20-Jan-04 19:55 
GeneralRe: Access Table some problem with new columns Pin
João Paulo Figueira20-Jan-04 22:27
professionalJoão Paulo Figueira20-Jan-04 22:27 
Questioninstaller? Pin
slomoman20-Jan-04 3:01
slomoman20-Jan-04 3:01 
AnswerRe: installer? Pin
João Paulo Figueira20-Jan-04 3:49
professionalJoão Paulo Figueira20-Jan-04 3:49 
GeneralRe: Wireless Communication Pin
misha_grewal18-Jan-04 23:50
misha_grewal18-Jan-04 23:50 
GeneralRe: Wireless Communication Pin
Mahesh Varma20-Jan-04 22:01
Mahesh Varma20-Jan-04 22:01 
GeneralRe: Wireless Communication Pin
annum22-Jan-04 16:55
annum22-Jan-04 16:55 

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.