Click here to Skip to main content
15,918,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalusing methods of .mof files Pin
Aamir Butt11-Dec-03 7:22
Aamir Butt11-Dec-03 7:22 
GeneralRe: using methods of .mof files Pin
David Crow11-Dec-03 7:28
David Crow11-Dec-03 7:28 
QuestionHow to change console background colors Pin
smore11-Dec-03 7:18
smore11-Dec-03 7:18 
AnswerRe: How to change console background colors Pin
Tim Deveaux11-Dec-03 7:34
Tim Deveaux11-Dec-03 7:34 
Generaloutput to *.xls file Pin
mitil2039048230411-Dec-03 7:13
mitil2039048230411-Dec-03 7:13 
GeneralRe: output to *.xls file Pin
David Crow11-Dec-03 7:22
David Crow11-Dec-03 7:22 
GeneralBitmaps Pin
aroraavinash11-Dec-03 7:12
aroraavinash11-Dec-03 7:12 
GeneralRe: Bitmaps Pin
Antti Keskinen11-Dec-03 7:26
Antti Keskinen11-Dec-03 7:26 
My suggestion here is to go for Windows application & MFC.

MFC provides you a possibility of customizing your window creation by deriving a class from CWnd. This allows you, when necessary, to do custom-painting routines for your window. I developed a skinned application a while back, and it's main design structure was as follows:

1. Created the actual bitmap of the UI, and the bitmaps of buttons
2. Created a 1-bit (two color) mask from the UI bitmap, and used a customized version of Jean-Edouard Lachand-Robert's BitmapToRegion function to get a valid Windows HRgn
3. Placed this HRgn as the window's clipping region by a call to CWnd::SelectClipRgn.

This results in a window with non-rectangular outline and a custom-painted UI. Of course, you can alternatively use drawing functions to draw the outline of the phone yourself, but this is very tedious work in Windows. However, it allows for a more realistic-looking UI than the bitmapping does. When using a bitmap, the creation of realistic-looking buttons is next to impossible, as you probably need to create skins for them as well.

The workload of creating a custom UI is huge, but doable, and if done right, you'll get very nifty results as well. But my suggestion is to go with MFC. Not only can you have access to the whole Win32 API if required, but you can also enjoy the benefits of a "true" OOP programming model.

If you feel like attempting this approach, here is a link to the aforementioned routine. The link resides on the CodeGuru website (BitmapToRegion routine.[^])

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Bitmaps Pin
David Crow11-Dec-03 7:27
David Crow11-Dec-03 7:27 
GeneralRe: Bitmaps Pin
aroraavinash11-Dec-03 8:54
aroraavinash11-Dec-03 8:54 
GeneralRe: Bitmaps Pin
David Crow11-Dec-03 8:59
David Crow11-Dec-03 8:59 
GeneralRe: Bitmaps Pin
aroraavinash11-Dec-03 9:32
aroraavinash11-Dec-03 9:32 
GeneralRe: Bitmaps Pin
aroraavinash11-Dec-03 9:43
aroraavinash11-Dec-03 9:43 
GeneralRe: Bitmaps Pin
David Crow11-Dec-03 10:26
David Crow11-Dec-03 10:26 
Generalfile manager Pin
thes3cr3t111-Dec-03 6:52
thes3cr3t111-Dec-03 6:52 
GeneralRe: file manager Pin
David Crow11-Dec-03 9:01
David Crow11-Dec-03 9:01 
GeneralRe: file manager Pin
thes3cr3t111-Dec-03 11:01
thes3cr3t111-Dec-03 11:01 
GeneralRe: file manager Pin
David Crow12-Dec-03 2:41
David Crow12-Dec-03 2:41 
GeneralRe: file manager Pin
thes3cr3t112-Dec-03 5:40
thes3cr3t112-Dec-03 5:40 
GeneralRe: file manager Pin
David Crow12-Dec-03 5:44
David Crow12-Dec-03 5:44 
GeneralRe: file manager Pin
thes3cr3t112-Dec-03 6:00
thes3cr3t112-Dec-03 6:00 
QuestionHow to create buttons on the video Pin
Chinnaa Ganesh Kumar11-Dec-03 6:40
Chinnaa Ganesh Kumar11-Dec-03 6:40 
GeneralParent and child dialog, GetWindowRect() Pin
J.B.11-Dec-03 5:29
J.B.11-Dec-03 5:29 
GeneralRe: Parent and child dialog, GetWindowRect() Pin
georgiek5011-Dec-03 5:50
georgiek5011-Dec-03 5:50 
GeneralRe: Parent and child dialog, GetWindowRect() Pin
J.B.11-Dec-03 15:26
J.B.11-Dec-03 15:26 

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.