Click here to Skip to main content
15,908,675 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with MAPISendMail without outlook running Pin
bolis30-Nov-10 2:06
bolis30-Nov-10 2:06 
Questionpointer and address ? Pin
dec8211-Jan-09 15:04
dec8211-Jan-09 15:04 
GeneralRe: pointer and address ? Pin
Luc Pattyn11-Jan-09 15:29
sitebuilderLuc Pattyn11-Jan-09 15:29 
GeneralRe: pointer and address ? Pin
Hamid_RT11-Jan-09 19:55
Hamid_RT11-Jan-09 19:55 
GeneralRe: pointer and address ? Pin
Luc Pattyn12-Jan-09 2:12
sitebuilderLuc Pattyn12-Jan-09 2:12 
Question[C] IRC client check if he is still operative Pin
ogn0s11-Jan-09 10:59
ogn0s11-Jan-09 10:59 
AnswerRe: [C] IRC client check if he is still operative Pin
Code-o-mat11-Jan-09 11:47
Code-o-mat11-Jan-09 11:47 
GeneralRe: [C] IRC client check if he is still operative Pin
ogn0s11-Jan-09 13:11
ogn0s11-Jan-09 13:11 
GeneralRe: [C] IRC client check if he is still operative Pin
ogn0s11-Jan-09 13:35
ogn0s11-Jan-09 13:35 
GeneralRe: [C] IRC client check if he is still operative Pin
Code-o-mat11-Jan-09 22:15
Code-o-mat11-Jan-09 22:15 
GeneralRe: [C] IRC client check if he is still operative Pin
ogn0s12-Jan-09 9:05
ogn0s12-Jan-09 9:05 
QuestionCSlider that works backwards Pin
Chris Hills11-Jan-09 10:20
Chris Hills11-Jan-09 10:20 
AnswerRe: CSlider that works backwards Pin
Graham Bradshaw11-Jan-09 11:52
Graham Bradshaw11-Jan-09 11:52 
AnswerRe: CSlider that works backwards Pin
Richard Andrew x6411-Jan-09 12:04
professionalRichard Andrew x6411-Jan-09 12:04 
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 
yes, the BMPSlika is a pointer to another bitmap class. it's not in gdi, i created that structure based on information from this page http://www.fortunecity.com/skyscraper/windows/364/bmpffrmt.html[^] . it does work, and the image is displayed correctly but gdi+ Bitmap class needs another structure as argument (BITMAPINFO) so i needed to cast it.
The image is displayed correctly but it doesn't get refreshed, only when I do something with the window like resizing it, minimizing, (driving it off screen and back)...
this is the wndproc function

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, 
   WPARAM wParam, LPARAM lParam){
   PAINTSTRUCT  ps;
   HDC		hdc;

   switch(message){
   case WM_PAINT:
	 hdc = BeginPaint(hWnd, &ps);
	 Prikaz(hdc);
      return 0;
   case WM_DESTROY:
      PostQuitMessage(0);
	  SnimiBitmap();
      return 0;
   default:
      return DefWindowProc(hWnd, message, wParam, lParam);
   }
}


as Baltoro said the WM_PAINT case is executed only when the window needs an update (when i resize it, minimize...) but it is executed also when I hold a mouse pointer over the window, but then the image doesn't get refreshed... the WM_PAINT case calls for Prikaz() and it is executed every time but when i hold a mouse pointer over the window it is called and executed but then the displayed image doesnt get refreshed...
GeneralRe: GDI+ image refresh (C++) Pin
Mark Salsbery13-Jan-09 6:43
Mark Salsbery13-Jan-09 6:43 
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 

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.