Click here to Skip to main content
15,903,856 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Select a phone number Pin
EliottA19-Oct-08 4:30
EliottA19-Oct-08 4:30 
QuestionWindows Mobile application direct hitting sql server 2005 problem Pin
manish.singhal17-Oct-08 2:12
manish.singhal17-Oct-08 2:12 
QuestionNeed Suggestion Pin
wasimsharp17-Oct-08 0:39
wasimsharp17-Oct-08 0:39 
QuestionHow to Read barcodes (Code39 etc.) using built-in camera ? Pin
SierraMike16-Oct-08 4:32
SierraMike16-Oct-08 4:32 
Questionflowlayout in windows mobile? Pin
bryce15-Oct-08 15:43
bryce15-Oct-08 15:43 
QuestionPassing Bitmap value to a Sub(routine). Pin
Hurricane300015-Oct-08 3:15
Hurricane300015-Oct-08 3:15 
AnswerRe: Passing Bitmap value to a Sub(routine). Pin
Joel Ivory Johnson4-Nov-08 19:22
professionalJoel Ivory Johnson4-Nov-08 19:22 
QuestionSHCreateMenuBar + TBSTYLE_CUSTOMERASE + NM_CUSTOMDRAW Pin
Voland.cpp14-Oct-08 9:55
Voland.cpp14-Oct-08 9:55 
Hello Everybody,

Is it possible to develop an owner drawn menu on WM 5.0 PPC?

I have already tried different approaches:

- the first one was to set the TBSTYLE_CUSTOMERASE style for the menu buttons in the rc file:

ID_MAIN_MENU RCDATA
BEGIN
	ID_MAIN_MENU,
	2,
	I_IMAGENONE, IDM_EXIT, TBSTATE_ENABLED,
		TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE | TBSTYLE_CUSTOMERASE, IDS_EXIT, 0, NOMENU,
	I_IMAGENONE, ID_MENU, TBSTATE_ENABLED,
		TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE | TBSTYLE_CUSTOMERASE, IDS_MENU, 0, 0
END


Then create the menubar:

SHMENUBARINFO mbi;
memset(&mbi, 0, sizeof(mbi));
mbi.cbSize = sizeof(mbi);
mbi.hwndParent = m_hWnd;
mbi.dwFlags = SHCMBF_HMENU;
mbi.nToolBarId = ID_MAIN_MENU;
mbi.hInstRes = _Module.GetResourceInstance()

if(!::SHCreateMenuBar(&mbi))
{
    ATLTRACE(_T("Failed to create menu bar.\n"));
    EndDialog(IDCANCEL);
    return -1;
}


And try to handle the WM_NOTIFY NM_CUSTOMDRAW message for custom draw:
LRESULT CMainDlg::OnNotify(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
	if (NM_CUSTOMDRAW == ((LPNMHDR)&lParam)->code)
	{
		LPNMCUSTOMDRAW pCustomDraw((LPNMCUSTOMDRAW)lParam);
...........................................................................
	}
	return 0;
}


But the required WM_NOTIFY message isn't sent to the parent window...

Does anybody have any ideas?

- I have also tried CreateToolbarEx to create the menu bar manually and not using Shell, but the same situation: I do not get the NM_CUSTOMDRAW message.


Thanks in advance for any help

With regards
Questionhide Link label focus rectangle Pin
~Khatri Mitesh~14-Oct-08 2:44
~Khatri Mitesh~14-Oct-08 2:44 
AnswerRe: hide Link label focus rectangle Pin
Hurricane300014-Oct-08 12:11
Hurricane300014-Oct-08 12:11 
GeneralRe: hide Link label focus rectangle Pin
~Khatri Mitesh~14-Oct-08 19:23
~Khatri Mitesh~14-Oct-08 19:23 
GeneralRe: hide Link label focus rectangle Pin
Hurricane300015-Oct-08 8:06
Hurricane300015-Oct-08 8:06 
QuestionBlackBerry Application Pin
Parasmani Swamy13-Oct-08 20:00
Parasmani Swamy13-Oct-08 20:00 
QuestionRe: BlackBerry Application Pin
bhushan kasturiwale17-Nov-08 21:19
bhushan kasturiwale17-Nov-08 21:19 
QuestionRobot navigating via Touch Sensitive Panel Pin
Amrish Deep13-Oct-08 9:10
Amrish Deep13-Oct-08 9:10 
QuestionHow can I secure files on .NET CF Pin
Vimvq198712-Oct-08 7:15
Vimvq198712-Oct-08 7:15 
AnswerRe: How can I secure files on .NET CF Pin
Joel Ivory Johnson4-Nov-08 19:32
professionalJoel Ivory Johnson4-Nov-08 19:32 
QuestionResizing great size images. Pin
Hurricane300012-Oct-08 6:29
Hurricane300012-Oct-08 6:29 
QuestionDeveloping for Nokia E90 (OS: Symbian s60) Pin
Rafferty Uy9-Oct-08 15:22
Rafferty Uy9-Oct-08 15:22 
AnswerRe: Developing for Nokia E90 (OS: Symbian s60) Pin
Hurricane300010-Oct-08 3:09
Hurricane300010-Oct-08 3:09 
GeneralRe: Developing for Nokia E90 (OS: Symbian s60) Pin
Rafferty Uy10-Oct-08 4:59
Rafferty Uy10-Oct-08 4:59 
GeneralRe: Developing for Nokia E90 (OS: Symbian s60) Pin
Hurricane300010-Oct-08 5:38
Hurricane300010-Oct-08 5:38 
GeneralRe: Developing for Nokia E90 (OS: Symbian s60) Pin
Rafferty Uy13-Oct-08 15:41
Rafferty Uy13-Oct-08 15:41 
GeneralRe: Developing for Nokia E90 (OS: Symbian s60) Pin
Hurricane300014-Oct-08 9:13
Hurricane300014-Oct-08 9:13 
GeneralRe: Developing for Nokia E90 (OS: Symbian s60) Pin
Rafferty Uy14-Oct-08 15:40
Rafferty Uy14-Oct-08 15:40 

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.