I have created a win32 instant messenger program and am porting it over to
PocketPC. Thankfully, I already had the program as unicode as I believe
this was a requirement for PocketPC. Anyway, the port has gone quite well,
I've had to lose a lot of functionality as it isnt required on the handheld
device. So far, I have my program running and working fine but there are a
few things I would like to get working a bit neater (as far as the GUI is
concerned).
Firstly, I would like my window to appear almost fullscreen, that is filling
the screen of the handheld device but with the task bar at the bottom and
the usual title bar at the top. So far, my window is almost doing this, I
can see the title bar fine but my window extends over thet ask bar at the
bottom. What should I do to create a window so that this doesnt happen?
I am trying to add a menu to my app, and am using the following code:
mHwndCB = CommandBar_Create(GetModuleHandle(NULL), mHwnd, 0);
CommandBar_InsertMenubar(mHwndCB, GetModuleHandle(NULL), IDR_MENU1, 0);
CommandBar_AddAdornments(mHwndCB, 0, 0);
CommandBar_Show(mHwndCB, TRUE);
None of the commands return failure, but the command bar doesnt appear to
show. I am confused by what msdn says about InsertMenuBar and the final
param, I have no buttons inserted. Can anybody tell me how I can get this
menu showing correctly?
Finally, I am using an edit control ("edit" class) and I want to change the
colour and size of the text, how can I do this?
Many Thanks.
Allan