Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
N

nightrider13

@nightrider13
About
Posts
11
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Scrollbarposition of richtextbox
    N nightrider13

    I have to determine the current scrollbar-position of a richtextbox but i don't know how. Can anyone help me please?

    C# help question

  • texteditor with linenumbering
    N nightrider13

    I want to write a texteditor which possesses a margin for linenumbering. I don't know how to implement such a margin. Can anyone tell me some tutorials or how to do that? Thank you in advance!

    C# tutorial question

  • Animation with GDI+
    N nightrider13

    TranslateTransform only copies a line and doesn't move it. So there is still a line at the previous position. -- modified at 19:09 Tuesday 15th August, 2006

    C / C++ / MFC winforms graphics tutorial question

  • Animation with GDI+
    N nightrider13

    Doesn't has to be GDI+. Could be everything else. Only requirements are drawing, moving, scaling, rotating shapes. I have considered DirectX or OpenGl but it sounds a bit too complicated for only doing such easy things...

    C / C++ / MFC winforms graphics tutorial question

  • Animation with GDI+
    N nightrider13

    Ohm at first thank you for your fast reply but I've already downloaded the redist. ;) The only thing I want to do is to realize a small animation only with lines. The thing is I would know how to do that with Bitmaps because there are many tutorials about that. But with lines or rectangles or something... I don't know

    C / C++ / MFC winforms graphics tutorial question

  • Animation with GDI+
    N nightrider13

    Hi, I'm trying to animate a single line which I've created with DrawLine(). The only possibility I know is using TranslateTransform() but with calling this method there is only made a copy of the old line. So has anyone an idea how to perform an animation with a single line? Would be really appreciate for answers. :)

    C / C++ / MFC winforms graphics tutorial question

  • GDI+ doesn't work
    N nightrider13

    Yeah you aren't wrong, that was the problem. Thank you Wes! ;)

    C / C++ / MFC winforms graphics question

  • GDI+ doesn't work
    N nightrider13

    Yeah you're right, sorry :) Yes I already included gdiplus.h. Then the next step was to declare these variables in CWinApp derived class: private: GdiplusStartupInput m_gdiplusStartupInput; ULONG_PTR m_pGdiToken; After that I added at the beginning of the InitInstance: GdiplusStartup(&m_pGdiToken,&m_gdiplusStartupInput,NULL); //gdi+ init And in the ExitInstance: GdiplusShutdown(m_pGdiToken); Thats it! Next step was compiling.

    C / C++ / MFC winforms graphics question

  • GDI+ doesn't work
    N nightrider13

    Hi, I've set up GDI+ in an application but i onldy get unresolved linker errors. The compiler can't find "_GdiplusStartup@12" and "_GdiplusShutdown@4". Does anyone knows what i can do to get GDI+ running? thx

    C / C++ / MFC winforms graphics question

  • Painting RichEditView
    N nightrider13

    Hi, I have made a Project derived from CRichEditView and I want to paint the Client-Area. The painting works perfectly there, is no flickering at all but there is a problem with the caret and the displayed signs. The caret appears completely strange and the displayed signs are not visible. Here is all I added to my project: BOOL CRichEdit2View::OnEraseBkgnd(CDC* pDC) { // TODO: Fügen Sie hier Ihren Meldungsbehandlungscode ein, und/oder benutzen Sie den Standard. COLORREF crFgcol = 0, crBgcol = RGB(209,255,176); CRect rect; GetClientRect(&rect); // We double buffer the drawing - // preparing the memory CDC CDC dc; dc.CreateCompatibleDC(pDC); // Create GDI and select objects CBitmap bmp; CPen pen; bmp.CreateCompatibleBitmap( pDC, rect.Width(), rect.Height() ); pen.CreatePen( PS_SOLID, 1, crFgcol ); CBitmap *pOldBitmap = dc.SelectObject( &bmp ); CPen *pOldPen = dc.SelectObject( &pen ); // Painting the background dc.FillSolidRect( &rect, RGB(255,255,255) ); // komplett CRect rcBar(rect); rcBar.top = 100; rcBar.bottom = 120; dc.FillSolidRect( &rcBar, crBgcol ); // Rand dc.MoveTo( rect.right - 1, 0 ); // dc.LineTo( rect.right - 1, rect.bottom ); pDC->BitBlt( 0, 0, rect. right, rect.bottom, &dc, 0, 0, SRCCOPY ); // Aufräumen dc.SelectObject( pOldBitmap ); dc.SelectObject( pOldPen ); return TRUE; } HBRUSH CRichEdit2View::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { pDC->SetBkMode(TRANSPARENT); return NULL; } void CRichEdit2View::OnPaint() { CPaintDC dc(this); // device context for painting // TODO: Fügen Sie hier Ihren Meldungsbehandlungscode ein. // CRichEditView::OnPaint() soll zum Zeichnen von Meldungen nicht aufgerufen werden. } I would be really happy if someone has an answer for me :)

    C / C++ / MFC graphics performance help

  • Need a toolbar
    N nightrider13

    Hi! I use Johan Rosengren's Files "Controls-in-controls: A line-numbering edit box" for line numbering in an SDI application. I have changed it to CEditView to get it working. The problenm is: After the visible area of the edit-control doesn't apprear a vertical scroolbar. Instead the cursor jumps into a new line. And also if I make the whole window smaller, the text which doesn't have enough place jumps into a new line. How can I make a scrollbar in this case? I hope you know what I mean, my English isn't the best.

    C / C++ / MFC question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups