Click here to Skip to main content
15,919,774 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiongetting the class members to pop up? Pin
ldsdbomber31-May-07 6:03
ldsdbomber31-May-07 6:03 
AnswerRe: getting the class members to pop up? Pin
David Crow31-May-07 6:11
David Crow31-May-07 6:11 
GeneralRe: getting the class members to pop up? Pin
ldsdbomber31-May-07 6:25
ldsdbomber31-May-07 6:25 
GeneralRe: getting the class members to pop up? Pin
David Crow31-May-07 6:31
David Crow31-May-07 6:31 
GeneralRe: getting the class members to pop up? Pin
Vaclav_31-May-07 16:36
Vaclav_31-May-07 16:36 
QuestionUnicode setting bby default in IDE Pin
tom groezer31-May-07 5:10
tom groezer31-May-07 5:10 
AnswerRe: Unicode setting bby default in IDE Pin
toxcct31-May-07 5:27
toxcct31-May-07 5:27 
Questiondisplaying png's with GDI+ Pin
Adno31-May-07 4:58
Adno31-May-07 4:58 
hi im trying to get my head around GDI+ as far as i can tell i can only use it in the main function.
With what i've done below the image shows up at first but when the window refreshes i.e (change the size of it)
the image disappears is not repainted.

main..

GdiplusStartupInput gdiplusStartupInput;
ULONG_PTR gdiplusToken;
GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
{
Graphics graphics(GetDC(hwnd));
Image* image = new Image(L"clock2alpha.png");

Bitmap bitmap(L"clock2alpha.png");
graphics.DrawImage(&bitmap, 0, 0);
}
GdiplusShutdown( gdiplusToken );

.....

im interested in displaying png images and how to access them outside the main method with GDI+

thank you

AnswerRe: displaying png's with GDI+ Pin
Jun Du31-May-07 5:09
Jun Du31-May-07 5:09 
QuestionRe: displaying png's with GDI+ Pin
Mark Salsbery31-May-07 6:15
Mark Salsbery31-May-07 6:15 
AnswerRe: displaying png's with GDI+ Pin
Adno31-May-07 15:04
Adno31-May-07 15:04 
GeneralRe: displaying png's with GDI+ Pin
Mark Salsbery31-May-07 15:16
Mark Salsbery31-May-07 15:16 
QuestionRe: displaying png's with GDI+ Pin
Hamid_RT31-May-07 18:39
Hamid_RT31-May-07 18:39 
QuestionHow to Upload (.doc) file in MySQL Database Pin
Y_Kaushik31-May-07 4:45
Y_Kaushik31-May-07 4:45 
AnswerRe: How to Upload (.doc) file in MySQL Database Pin
David Crow31-May-07 5:03
David Crow31-May-07 5:03 
Generalhiding a console app Pin
Rage31-May-07 4:04
professionalRage31-May-07 4:04 
GeneralRe: hiding a console app Pin
toxcct31-May-07 4:12
toxcct31-May-07 4:12 
GeneralRe: hiding a console app Pin
Rage31-May-07 4:22
professionalRage31-May-07 4:22 
GeneralRe: hiding a console app Pin
toxcct31-May-07 4:28
toxcct31-May-07 4:28 
GeneralRe: hiding a console app Pin
Rage31-May-07 5:22
professionalRage31-May-07 5:22 
GeneralRe: hiding a console app Pin
toxcct31-May-07 5:24
toxcct31-May-07 5:24 
GeneralRe: hiding a console app Pin
Matthew Faithfull31-May-07 5:04
Matthew Faithfull31-May-07 5:04 
GeneralRe: hiding a console app Pin
Rage31-May-07 5:22
professionalRage31-May-07 5:22 
GeneralRe: hiding a console app Pin
Matthew Faithfull31-May-07 5:49
Matthew Faithfull31-May-07 5:49 
GeneralRe: hiding a console app Pin
tom groezer31-May-07 5:24
tom groezer31-May-07 5:24 

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.