Click here to Skip to main content
15,900,372 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTrying to create a File Menu [modified] Pin
BobInNJ11-Jan-09 9:06
BobInNJ11-Jan-09 9:06 
AnswerRe: Trying to create a File Menu Pin
BobInNJ11-Jan-09 9:25
BobInNJ11-Jan-09 9:25 
QuestionGDI+ image refresh (C++) Pin
Valdyr11-Jan-09 7:38
Valdyr11-Jan-09 7:38 
AnswerRe: GDI+ image refresh (C++) Pin
Baltoro11-Jan-09 10:55
Baltoro11-Jan-09 10:55 
GeneralRe: GDI+ image refresh (C++) [modified] Pin
Valdyr11-Jan-09 23:28
Valdyr11-Jan-09 23:28 
AnswerRe: GDI+ image refresh (C++) Pin
Mark Salsbery12-Jan-09 7:27
Mark Salsbery12-Jan-09 7:27 
GeneralRe: GDI+ image refresh (C++) Pin
Valdyr12-Jan-09 13:32
Valdyr12-Jan-09 13:32 
GeneralRe: GDI+ image refresh (C++) Pin
Mark Salsbery13-Jan-09 6:43
Mark Salsbery13-Jan-09 6:43 
You mentioned something about a loop in your first post - where is this loop and
what is it (supposed to be) doing?

WM_PAINT is posted to your window's message queue by the system. The parameters are
not in your control, nor are they wrong, nor should you be trying to send/post a WM_PAINT
message yourself.

Window rendering has been the same since the beginning of Windows....the problem is in YOUR code,
not some problem in MFC (which you're not using apparently), .NET (which you're not using apparently),
or the system.

void Prikaz(HDC hdc){
    Graphics graphics(hdc);
    Render();
    Bitmap FrameBuffer((BITMAPINFO*) &((*BMPSlika).InfoHeader), (*BMPSlika).PixelData);
    graphics.DrawImage(&FrameBuffer,0,0);
}

This code has nothing to do with WM_PAINT or Invalidatexxxx() functions. The bitmap will be rendered
immediately if the HDC and the Bitmap are valid.

According to your comments, your WM_PAINT handling code is working fine, so where else are
you calling this from and how are you obtaining the HDC?


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionRe: GDI+ image refresh (C++) Pin
Valdyr13-Jan-09 2:45
Valdyr13-Jan-09 2:45 
QuestionExecute one instance of application per system Pin
Mohammad Khodaea11-Jan-09 1:51
Mohammad Khodaea11-Jan-09 1:51 
AnswerRe: Execute one instance of application per system Pin
Hamid_RT11-Jan-09 1:58
Hamid_RT11-Jan-09 1:58 
QuestionSetWindowText function error Pin
KARFER11-Jan-09 1:50
KARFER11-Jan-09 1:50 
AnswerRe: SetWindowText function error Pin
Hamid_RT11-Jan-09 1:53
Hamid_RT11-Jan-09 1:53 
GeneralRe: SetWindowText function error Pin
KARFER11-Jan-09 9:44
KARFER11-Jan-09 9:44 
AnswerRe: SetWindowText function error Pin
Stephen Hewitt11-Jan-09 4:11
Stephen Hewitt11-Jan-09 4:11 
QuestionFind All databases in a SQL Server Instance using VC++ 6.0 Pin
unniks10-Jan-09 16:53
unniks10-Jan-09 16:53 
AnswerRe: Find All databases in a SQL Server Instance using VC++ 6.0 Pin
Hamid_RT11-Jan-09 2:01
Hamid_RT11-Jan-09 2:01 
GeneralRe: Find All databases in a SQL Server Instance using VC++ 6.0 Pin
unniks11-Jan-09 5:06
unniks11-Jan-09 5:06 
AnswerRe: Find All databases in a SQL Server Instance using VC++ 6.0 Pin
David Crow12-Jan-09 3:27
David Crow12-Jan-09 3:27 
AnswerRe: Find All databases in a SQL Server Instance using VC++ 6.0 Pin
Member 8157212-Jan-09 22:19
Member 8157212-Jan-09 22:19 
QuestionQuestion about Inject DLL Redirect wsock Pin
VB_Crazy10-Jan-09 16:42
VB_Crazy10-Jan-09 16:42 
AnswerRe: Question about Inject DLL Redirect wsock Pin
Code-o-mat11-Jan-09 8:48
Code-o-mat11-Jan-09 8:48 
GeneralRe: Question about Inject DLL Redirect wsock Pin
VB_Crazy12-Jan-09 0:26
VB_Crazy12-Jan-09 0:26 
GeneralRe: Question about Inject DLL Redirect wsock Pin
Code-o-mat12-Jan-09 0:38
Code-o-mat12-Jan-09 0:38 
AnswerRe: Question about Inject DLL Redirect wsock Pin
VB_Crazy12-Jan-09 22:42
VB_Crazy12-Jan-09 22:42 

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.