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

C / C++ / MFC

 
QuestionHow to get device context? Pin
shivditya27-Jun-06 3:11
shivditya27-Jun-06 3:11 
QuestionRe: How to get device context? Pin
David Crow27-Jun-06 3:30
David Crow27-Jun-06 3:30 
QuestionRe: How to get device context? [modified] Pin
shivditya27-Jun-06 3:42
shivditya27-Jun-06 3:42 
AnswerRe: How to get device context? Pin
David Crow27-Jun-06 3:46
David Crow27-Jun-06 3:46 
GeneralRe: How to get device context? Pin
shivditya27-Jun-06 3:51
shivditya27-Jun-06 3:51 
GeneralRe: How to get device context? Pin
David Crow27-Jun-06 3:59
David Crow27-Jun-06 3:59 
AnswerRe: How to get device context? Pin
Sarath C27-Jun-06 3:32
Sarath C27-Jun-06 3:32 
GeneralRe: How to get device context? Pin
shivditya27-Jun-06 3:49
shivditya27-Jun-06 3:49 
I tried all the stuff but how to get handle of SDI window from the class instance which is used inside runtimeclass which is being called by SDI using
AfxBeginThread

void CMy5CYLINDERView::support()
{
for(int ii = 0;ii < 1;ii++)
{
x[ii] = AfxBeginThread(RUNTIME_CLASS(SHIV)); //SHIV is my RunTime class.

}
}

//FOllowing is constructor which is using another simulate class instance engine.
SHIV::SHIV()
{
engine.getdata(0);
engine.nextpos();
}
//And this nextpos method requires DC to draw

void simulate::nextpos()
{
CWnd* cc;
cc = (CWnd*)GetWindow(();
CDC* pDC = cc->GetDC();
CBrush bluebrush,old,white;
white.CreateSolidBrush(RGB(200,

|| ART OF LIVING ||
GeneralRe: How to get device context? Pin
Sarath C27-Jun-06 3:54
Sarath C27-Jun-06 3:54 
GeneralRe: How to get device context? Pin
Hamid_RT27-Jun-06 4:18
Hamid_RT27-Jun-06 4:18 
AnswerRe: How to get device context? Pin
shivditya27-Jun-06 19:07
shivditya27-Jun-06 19:07 
AnswerRe: CControlBar Pin
Rage27-Jun-06 3:31
professionalRage27-Jun-06 3:31 
Questionanimation Pin
ashish dogra27-Jun-06 3:03
ashish dogra27-Jun-06 3:03 
AnswerRe: animation Pin
_AnsHUMAN_ 27-Jun-06 3:12
_AnsHUMAN_ 27-Jun-06 3:12 
GeneralRe: animation [modified] Pin
ashish dogra27-Jun-06 3:15
ashish dogra27-Jun-06 3:15 
GeneralRe: animation Pin
_AnsHUMAN_ 27-Jun-06 3:22
_AnsHUMAN_ 27-Jun-06 3:22 
GeneralRe: animation Pin
ashish dogra27-Jun-06 3:25
ashish dogra27-Jun-06 3:25 
GeneralRe: animation Pin
Rage27-Jun-06 3:29
professionalRage27-Jun-06 3:29 
GeneralRe: animation [modified] Pin
ashish dogra27-Jun-06 3:38
ashish dogra27-Jun-06 3:38 
GeneralRe: animation Pin
_AnsHUMAN_ 27-Jun-06 3:36
_AnsHUMAN_ 27-Jun-06 3:36 
QuestionRe: animation Pin
David Crow27-Jun-06 3:33
David Crow27-Jun-06 3:33 
AnswerRe: animation Pin
Hamid_RT27-Jun-06 3:36
Hamid_RT27-Jun-06 3:36 
QuestionHow to terminate a thread compulsively? Pin
zouchao111227-Jun-06 2:49
zouchao111227-Jun-06 2:49 
AnswerRe: How to terminate a thread compulsively? Pin
_AnsHUMAN_ 27-Jun-06 2:58
_AnsHUMAN_ 27-Jun-06 2:58 
AnswerRe: How to terminate a thread compulsively? Pin
Rage27-Jun-06 3:27
professionalRage27-Jun-06 3:27 

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.