Click here to Skip to main content
15,901,284 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: String table in SQL database? Pin
Stephen Hewitt22-Jan-06 11:26
Stephen Hewitt22-Jan-06 11:26 
GeneralRe: String table in SQL database? Pin
Andre xxxxxxx22-Jan-06 11:36
Andre xxxxxxx22-Jan-06 11:36 
GeneralRe: String table in SQL database? Pin
Stephen Hewitt22-Jan-06 11:41
Stephen Hewitt22-Jan-06 11:41 
GeneralRe: String table in SQL database? Pin
Andre xxxxxxx22-Jan-06 11:57
Andre xxxxxxx22-Jan-06 11:57 
GeneralRe: String table in SQL database? Pin
Stephen Hewitt22-Jan-06 12:05
Stephen Hewitt22-Jan-06 12:05 
GeneralRe: String table in SQL database? Pin
PJ Arends22-Jan-06 11:56
professionalPJ Arends22-Jan-06 11:56 
AnswerRe: String table in SQL database? Pin
JonEngle22-Jan-06 19:43
JonEngle22-Jan-06 19:43 
QuestionIcon not showing in CStatic Control Pin
Tom Moore22-Jan-06 10:09
Tom Moore22-Jan-06 10:09 
Hi,

I am programming a custom error dialog box with two three CStatic Controls.

The first is a title, the second is a message and the third is a picture box set to be a icon.

The first two are okay. The third is really bugging me!

I've created a variable for the CStatic from the Variable Wizard called m_Icon and then in Init_Dialg I set it to a standard Icon using this:

<br />
m_Icon.SetIcon(AfxGetApp()->LoadStandardIcon(IDI_EXCLAMATION)); <br />


I have also tried creating an Icon using HICON and setting the control to the HICON and using the method m_Icon.SetIcon(::LoadIcon(IDI_EXCLAMATION));

They all compile fine.

But when i the app runs, i dont see the Icon. The Controls Visability is set to TRUE.

Where have I gone wrong and how can I correct this?

Many Thanks

Tom.

P.S Personally creating Custom Error Dialogs is a pain, and I am looking forward to seeing the Windows Vista TaskDialog!! Cool | :cool: Wink | ;)

-- modified at 16:09 Sunday 22nd January, 2006
AnswerRe: Icon not showing in CStatic Control Pin
PJ Arends22-Jan-06 11:21
professionalPJ Arends22-Jan-06 11:21 
GeneralRe: Icon not showing in CStatic Control Pin
Ryan Binns22-Jan-06 17:37
Ryan Binns22-Jan-06 17:37 
AnswerRe: Icon not showing in CStatic Control Pin
Ryan Binns22-Jan-06 17:37
Ryan Binns22-Jan-06 17:37 
Questionwhat do you think of my message loop for DirectX proj Pin
tom_dx22-Jan-06 4:57
tom_dx22-Jan-06 4:57 
AnswerRe: what do you think of my message loop for DirectX proj Pin
Cedric Moonen22-Jan-06 7:29
Cedric Moonen22-Jan-06 7:29 
GeneralRe: what do you think of my message loop for DirectX proj Pin
tom_dx22-Jan-06 7:59
tom_dx22-Jan-06 7:59 
AnswerRe: what do you think of my message loop for DirectX proj Pin
Stephen Hewitt22-Jan-06 11:19
Stephen Hewitt22-Jan-06 11:19 
GeneralRe: what do you think of my message loop for DirectX proj Pin
tom_dx22-Jan-06 12:36
tom_dx22-Jan-06 12:36 
GeneralRe: what do you think of my message loop for DirectX proj Pin
Stephen Hewitt22-Jan-06 12:41
Stephen Hewitt22-Jan-06 12:41 
QuestionReplacing ATL Pin
Jim Crafton22-Jan-06 3:15
Jim Crafton22-Jan-06 3:15 
AnswerRe: Replacing ATL Pin
tom_dx22-Jan-06 5:01
tom_dx22-Jan-06 5:01 
GeneralRe: Replacing ATL Pin
S. Senthil Kumar22-Jan-06 5:27
S. Senthil Kumar22-Jan-06 5:27 
GeneralRe: Replacing ATL Pin
tom_dx22-Jan-06 5:40
tom_dx22-Jan-06 5:40 
GeneralRe: Replacing ATL Pin
QuickDeveloper22-Jan-06 21:25
QuickDeveloper22-Jan-06 21:25 
GeneralRe: Replacing ATL Pin
tom_dx23-Jan-06 2:06
tom_dx23-Jan-06 2:06 
AnswerRe: Replacing ATL Pin
Kevin McFarlane22-Jan-06 6:19
Kevin McFarlane22-Jan-06 6:19 
AnswerRe: Replacing ATL Pin
peterchen22-Jan-06 7:32
peterchen22-Jan-06 7:32 

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.