PDA

View Full Version : C++ GUI


Scalee
8th September 2009, 07:04 PM
Does somebody know where i can find any tutorials on GUI handling in c++ for windows mobile 6.1

My code is complete but i still have to code the interface, but i can't find anything on how to do this.

(made in vs 2008, c++ smart device application with SDK 6 pro)

mccoffein
8th September 2009, 07:08 PM
Hy,

you can try mfc.

Greatz
mccoffein

Rudegar
8th September 2009, 09:17 PM
yeah miniMFC is the other other wiciwigy interface for wm apart from .net
and it's slower then pure win32 where you have to build all guild in code by hand
but it's faster then .net

Scalee
9th September 2009, 07:59 AM
but why use mfc if its slower, i just need 1 input box 1 output box like a multi line textbox and a start button.

Just need 1 tutorial on how to do it, i messed around with the resources where i made a dialog but i can't do anything in the main window.

stephj
9th September 2009, 10:46 AM
MFC is easier, as it provides classes for handling all this stuff, and it also wraps up the windows messages into convenient events to deal with.

If you want to do it the hard way, you will have to master the function CreateWindow() or CreateWindowEx()

Search for it in VS Help and make sure you select the CE version.

Buttons, textboxes, checkboxes, etc., are all child Windows, connected to/owned by, the main window of the application.

Search for 'Control Styles' to find what parameters to pass to to it, in order to create what you want.

Search VS help using 'Creating a Button' for some examples, and study them hard.

You will have to get to grips with all this before you can even start.

Scalee
9th September 2009, 11:46 AM
Aah well :) I have done my fair share of assembly guess i am lucky there.

I never knew that every item on a form was considered a window, however it does make sense if your looking around with spy++

I'll just check how fast it runs on MFC, because now it already takes 5 minutes to run in the worst case scenario (this however is inside the emulator).

Thanks for the information guys