Click here to Skip to main content
15,886,664 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Destructor of CView Pin
CPallini24-Apr-09 0:47
mveCPallini24-Apr-09 0:47 
Question[Message Deleted] Pin
vctrlao23-Apr-09 20:55
vctrlao23-Apr-09 20:55 
AnswerRe: the endless loop Pin
Cedric Moonen23-Apr-09 21:05
Cedric Moonen23-Apr-09 21:05 
QuestionRe: the endless loop Pin
CPallini23-Apr-09 21:09
mveCPallini23-Apr-09 21:09 
QuestionHow to create WM_TIMER that interval time less than 1 millisec Pin
Max++23-Apr-09 20:11
Max++23-Apr-09 20:11 
AnswerRe: How to create WM_TIMER that interval time less than 1 millisec Pin
Cedric Moonen23-Apr-09 20:14
Cedric Moonen23-Apr-09 20:14 
AnswerRe: How to create WM_TIMER that interval time less than 1 millisec Pin
Hamid_RT23-Apr-09 23:40
Hamid_RT23-Apr-09 23:40 
QuestionPopup window from main window Pin
Anu_Bala23-Apr-09 19:59
Anu_Bala23-Apr-09 19:59 
My application is MDI.but we modified the precreatewindow and using as single window applicaiton.
And we transfer to different window using menu or pageup,page down.
For ex,i have 5 pages of graphics window showing some animation and index of all five pages as index window.By clciking the topics in index,the new window will appear and we destroy the prevoius window.I draw the window details in OnDraw().
But now i want some graphics window appear as popup with close button.So i set flag for tht particular window and i set setwindowpos()...But its now flcikering...
I dnt know wat to do...

Code:

Same window:
---------------
///Clciking function in Index page
{
.
.
.
.
if( gpGView->glg_animation[giSchPNo].m_hWnd )
{
gpGView->glg_animation[giSchPNo].DestroyWindow();
giSchPNo = iPanNo - FirstGraph();// - 1;
giSchPNo = giGraphicCnt;
return;
}
Then it goes to Ondraw() and draw the window.

As Popup:
----------
///Clciking function in Index page

if(help==1) ////shown as popup
{
if( gpGView->glg_animation[giSchPNo].m_hWnd )
{

////gpGView->glg_animation[giSchPNo].DestroyWindow();
giSchPNo = iPanNo - FirstGraph();// - 1;
giSchPNo = giGraphicCnt;

return;
}
}

in Ondraw() i add this line

((CGraphView *)(((CMainFrame *)AfxGetMainWnd())->pDisplayedViews[6]))->glg_animation[giSchPNo].SetWindowPos(HWND_TOP,(GetSystemMetrics(SM_CXSCREEN)/2) - (480/2),(GetSystemMetrics(SM_CYSCREEN)/2) - (350/2),505,280,SWP_SHOWWINDOW);

Anu

Questionhow to print the data using VC++ Pin
diptipanchal23-Apr-09 19:39
diptipanchal23-Apr-09 19:39 
AnswerRe: how to print the data using VC++ Pin
CPallini23-Apr-09 21:16
mveCPallini23-Apr-09 21:16 
GeneralRe: how to print the data using VC++ Pin
diptipanchal23-Apr-09 22:10
diptipanchal23-Apr-09 22:10 
GeneralRe: how to print the data using VC++ Pin
CPallini23-Apr-09 22:15
mveCPallini23-Apr-09 22:15 
GeneralRe: how to print the data using VC++ Pin
diptipanchal27-Apr-09 0:18
diptipanchal27-Apr-09 0:18 
AnswerRe: how to print the data using VC++ Pin
Hamid_RT24-Apr-09 0:01
Hamid_RT24-Apr-09 0:01 
GeneralRe: how to print the data using VC++ Pin
diptipanchal27-Apr-09 0:50
diptipanchal27-Apr-09 0:50 
QuestionConvert Project from Multibyte TO Unicode Pin
Varun Bhatt23-Apr-09 19:16
Varun Bhatt23-Apr-09 19:16 
AnswerRe: Convert Project from Multibyte TO Unicode Pin
Cedric Moonen23-Apr-09 20:16
Cedric Moonen23-Apr-09 20:16 
GeneralRe: Convert Project from Multibyte TO Unicode Pin
Varun Bhatt25-Apr-09 2:55
Varun Bhatt25-Apr-09 2:55 
QuestionHow to display an image on the dialog from a Byte array? Pin
kapardhi23-Apr-09 18:43
kapardhi23-Apr-09 18:43 
AnswerRe: How to display an image on the dialog from a Byte array? Pin
Nuri Ismail23-Apr-09 21:10
Nuri Ismail23-Apr-09 21:10 
AnswerRe: How to display an image on the dialog from a Byte array? Pin
CPallini23-Apr-09 21:29
mveCPallini23-Apr-09 21:29 
Questionconversion from MultiByte Character set to UNICODE character set Pin
Purish Dwivedi23-Apr-09 18:42
Purish Dwivedi23-Apr-09 18:42 
AnswerRe: conversion from MultiByte Character set to UNICODE character set Pin
Cedric Moonen23-Apr-09 20:18
Cedric Moonen23-Apr-09 20:18 
GeneralRe: conversion from MultiByte Character set to UNICODE character set Pin
Purish Dwivedi23-Apr-09 22:12
Purish Dwivedi23-Apr-09 22:12 
QuestionKeybaord hooking Pin
ashtwin23-Apr-09 18:40
ashtwin23-Apr-09 18:40 

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.