Click here to Skip to main content
15,921,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ostream operator link error [modified] Pin
Viorel.7-Jul-06 4:45
Viorel.7-Jul-06 4:45 
AnswerRe: ostream operator link error Pin
Zac Howland7-Jul-06 5:11
Zac Howland7-Jul-06 5:11 
QuestionRun an application inside another one Pin
xtof737-Jul-06 4:03
xtof737-Jul-06 4:03 
AnswerRe: Run an application inside another one Pin
Sarath C7-Jul-06 4:25
Sarath C7-Jul-06 4:25 
GeneralRe: Run an application inside another one Pin
Zac Howland7-Jul-06 4:30
Zac Howland7-Jul-06 4:30 
GeneralRe: Run an application inside another one Pin
Sarath C7-Jul-06 4:39
Sarath C7-Jul-06 4:39 
AnswerRe: Run an application inside another one Pin
Jun Du7-Jul-06 4:40
Jun Du7-Jul-06 4:40 
QuestionCListCtrl and Graphic Pin
ensger7-Jul-06 3:44
ensger7-Jul-06 3:44 
Hello,

I'm using a CListCtrl in a CListView to show my data and now I want my data to be shown in a grphical form (with rectangles, circles, lines and so on). For testing, I decided to do this on a right mouse double-click an I implemented the following:

void kstkoardwView::OnRButtonDblClk(UINT nFlags, CPoint point)
{
// TODO: Code für die Behandlungsroutine für Nachrichten hier einfügen und/oder Standard aufrufen
//Test for Graphik
CClientDC dc(this);
CListCtrl &listCtrl = GetListCtrl();
RECT rect;
for (int i = 0; i <= 6; i++)
{
listCtrl.DeleteColumn(0);
}


GetClientRect(&rect);
dc.Rectangle(rect.left, rect.bottom, rect.right, rect.top);
int b = (int) (100.0 * rand() / RAND_MAX);
dc.TextOut(point.x-100, point.y-100, "Hugo");
dc.Ellipse(point.x-b, point.y-b, point.x+b, point.y+b);
dc.Rectangle(point.x-b+100, point.y-b+100, point.x+b, point.y+b);
dc.Rectangle(10, rect.bottom, 20, rect.bottom-100);
dc.Rectangle(20, rect.bottom, 30, rect.bottom-75);
dc.Pie(100, 100, 150, 150, 300, 300, 250, 250);
dc.Draw3dRect(200,200,300,300,0,0);
CListView::OnRButtonDblClk(nFlags, point);
}


But following happens: First double-click = Columns are deleted - the gray header-row is still visible. Second doble-click = the rest is done and I see my drawing.

Can anyone tell me why and a solution? Or has anyone a better solution to make graphics from CListView-data?

Thanks, Gerhard
AnswerRe: CListCtrl and Graphic Pin
Zac Howland7-Jul-06 5:25
Zac Howland7-Jul-06 5:25 
GeneralRe: CListCtrl and Graphic Pin
ensger7-Jul-06 9:10
ensger7-Jul-06 9:10 
QuestionCreating a Bitmap from a Framegrabber Image Pin
im797-Jul-06 3:41
im797-Jul-06 3:41 
AnswerRe: Creating a Bitmap from a Framegrabber Image Pin
Justin Tay7-Jul-06 6:27
Justin Tay7-Jul-06 6:27 
AnswerRe: Creating a Bitmap from a Framegrabber Image Pin
im799-Jul-06 4:37
im799-Jul-06 4:37 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
Justin Tay9-Jul-06 11:40
Justin Tay9-Jul-06 11:40 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
im7910-Jul-06 21:43
im7910-Jul-06 21:43 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
Justin Tay10-Jul-06 22:55
Justin Tay10-Jul-06 22:55 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
im7910-Jul-06 23:12
im7910-Jul-06 23:12 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
Justin Tay10-Jul-06 23:37
Justin Tay10-Jul-06 23:37 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
im7911-Jul-06 1:16
im7911-Jul-06 1:16 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
im7930-Mar-08 13:06
im7930-Mar-08 13:06 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
Justin Tay1-Apr-08 4:09
Justin Tay1-Apr-08 4:09 
QuestionWhat is wrong with this class - C2248 error Pin
charlieg7-Jul-06 3:24
charlieg7-Jul-06 3:24 
AnswerRe: What is wrong with this class - C2248 error Pin
Taka Muraoka7-Jul-06 3:29
Taka Muraoka7-Jul-06 3:29 
GeneralRe: What is wrong with this class - C2248 error Pin
charlieg7-Jul-06 3:39
charlieg7-Jul-06 3:39 
AnswerRe: What is wrong with this class - C2248 error Pin
Chris Losinger7-Jul-06 3:32
professionalChris Losinger7-Jul-06 3:32 

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.