Click here to Skip to main content
15,913,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionneed some ideeas Pin
Calc2027-Jun-06 3:52
Calc2027-Jun-06 3:52 
Questiontooltip Pin
yogendra kaushik27-Jun-06 3:32
yogendra kaushik27-Jun-06 3:32 
AnswerRe: tooltip Pin
_AnsHUMAN_ 27-Jun-06 3:39
_AnsHUMAN_ 27-Jun-06 3:39 
GeneralRe: tooltip Pin
David Crow27-Jun-06 3:44
David Crow27-Jun-06 3:44 
AnswerRe: tooltip [modified] Pin
Sarath C27-Jun-06 3:42
Sarath C27-Jun-06 3:42 
GeneralRe: tooltip Pin
ashish dogra27-Jun-06 3:56
ashish dogra27-Jun-06 3:56 
GeneralRe: tooltip [modified] Pin
Sarath C27-Jun-06 4:41
Sarath C27-Jun-06 4:41 
AnswerRe: tooltip Pin
Michael Dunn27-Jun-06 6:37
sitebuilderMichael Dunn27-Jun-06 6:37 
QuestionStrange error message Pin
hint_5427-Jun-06 3:30
hint_5427-Jun-06 3:30 
AnswerRe: Strange error message Pin
Sarath C27-Jun-06 4:00
Sarath C27-Jun-06 4:00 
GeneralRe: Strange error message Pin
hint_5427-Jun-06 4:03
hint_5427-Jun-06 4:03 
GeneralRe: Strange error message Pin
Michael Dunn27-Jun-06 6:40
sitebuilderMichael Dunn27-Jun-06 6:40 
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 

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.