Click here to Skip to main content
16,004,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to add third pary COMDLL into win32 project Pin
_AnsHUMAN_ 1-May-08 20:17
_AnsHUMAN_ 1-May-08 20:17 
QuestionHow can I use properties file Pin
pl_kode1-May-08 19:32
pl_kode1-May-08 19:32 
AnswerRe: How can I use properties file Pin
_AnsHUMAN_ 1-May-08 20:27
_AnsHUMAN_ 1-May-08 20:27 
GeneralRe: How can I use properties file Pin
pl_kode1-May-08 21:03
pl_kode1-May-08 21:03 
GeneralRe: How can I use properties file Pin
_AnsHUMAN_ 2-May-08 0:09
_AnsHUMAN_ 2-May-08 0:09 
GeneralRe: How can I use properties file Pin
Mark Salsbery2-May-08 5:35
Mark Salsbery2-May-08 5:35 
QuestionRe: How can I use properties file Pin
David Crow2-May-08 4:59
David Crow2-May-08 4:59 
QuestionDisplay Pictures Problem -- Again ;) Pin
bobber2051-May-08 18:46
bobber2051-May-08 18:46 
Ok. I was given

ULONG dwToken;
Gdiplus::GdiplusStartupInput input;
Gdiplus::GdiplusStartupOutput output;
Gdiplus::Status status = Gdiplus::GdiplusStartup(&dwToken, &input, &output);
if(status == Gdiplus::Ok)
{
Gdiplus::Bitmap srcBitmap(L"betty.PNG", FALSE);
Gdiplus::Graphics wndGraphics(staticwindow);
wndGraphics.DrawImage(&srcBitmap, 0, 0);

//Gdiplus::GdiplusShutdown(dwToken);

}

to draw pictures on a static control. I used ResEdit to create my window and I placed a Picture Control on the box. Turns out it seems to be a static control with a specific style to do this.

Now I am creating a dialog box and trying to draw the image again. I used Visual Studio's editor (no choice atm) to create my child window with the picture control called IDC_STATIC.

For some reason the above code no longer works. I step through it with no errors. So what could be wrong? well I looked into the .rc file and it is using some strange class for my picture control and not the static control like resedit's was.

Bwa?

If I use resedit's picture control it works. If I do not, I get no picture.
Any ideas?
AnswerRe: Display Pictures Problem -- Again ;) Pin
bobber2051-May-08 19:07
bobber2051-May-08 19:07 
AnswerRe: Display Pictures Problem -- Again ;) Pin
Rajesh R Subramanian1-May-08 19:11
professionalRajesh R Subramanian1-May-08 19:11 
GeneralRe: Display Pictures Problem -- Again ;) Pin
Nelek1-May-08 22:34
protectorNelek1-May-08 22:34 
GeneralRe: Display Pictures Problem -- Again ;) Pin
Mark Salsbery2-May-08 5:39
Mark Salsbery2-May-08 5:39 
GeneralRe: Display Pictures Problem -- Again ;) Pin
bobber2052-May-08 12:23
bobber2052-May-08 12:23 
AnswerRe: Display Pictures Problem -- Again ;) Pin
Hamid_RT2-May-08 5:05
Hamid_RT2-May-08 5:05 
GeneralRe: Display Pictures Problem -- Again ;) Pin
bobber2052-May-08 12:25
bobber2052-May-08 12:25 
GeneralRe: Display Pictures Problem -- Again ;) Pin
bobber2052-May-08 14:17
bobber2052-May-08 14:17 
GeneralRe: Display Pictures Problem -- Again ;) Pin
Rajkumar R2-May-08 20:16
Rajkumar R2-May-08 20:16 
GeneralRe: Display Pictures Problem -- Again ;) Pin
bobber2052-May-08 20:48
bobber2052-May-08 20:48 
GeneralRe: Display Pictures Problem -- Again ;) Pin
Mark Salsbery3-May-08 7:34
Mark Salsbery3-May-08 7:34 
GeneralRe: Display Pictures Problem -- Again ;) [modified] Pin
bobber2053-May-08 7:44
bobber2053-May-08 7:44 
GeneralRe: Display Pictures Problem -- Again ;) [modified] Pin
Mark Salsbery3-May-08 8:15
Mark Salsbery3-May-08 8:15 
QuestionFind function in CTreeCtrl Pin
Anu_Bala1-May-08 18:45
Anu_Bala1-May-08 18:45 
QuestionRe: Find function in CTreeCtrl Pin
Rajesh R Subramanian1-May-08 18:51
professionalRajesh R Subramanian1-May-08 18:51 
AnswerRe: Find function in CTreeCtrl Pin
Anu_Bala1-May-08 19:00
Anu_Bala1-May-08 19:00 
QuestionRe: Find function in CTreeCtrl Pin
Rajesh R Subramanian1-May-08 19:10
professionalRajesh R Subramanian1-May-08 19:10 

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.