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
G

gcorrea

@gcorrea
About
Posts
9
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Text with backspace in Transparent window
    G gcorrea

    Thanks everybody. I had solved my problem ;)

    C / C++ / MFC debugging

  • Erase text in transparent window
    G gcorrea

    Thanks everybody. I had solved my problem ;)

    C / C++ / MFC question

  • Erase text in transparent window
    G gcorrea

    Can anybody tell me how can I erase a text in a transparent window

    C / C++ / MFC question

  • Text with backspace in Transparent window
    G gcorrea

    I had used differents parameters and ones don not compile, give me errors, others ones compile but give assertion failure but any works. Could you Mr. Dootson attach your working code zipped to compare what I am doing wrong?

    C / C++ / MFC debugging

  • Text with backspace in Transparent window
    G gcorrea

    Doing that I get: error C2664: 'Create' : cannot convert parameter 6 from 'const int' to 'const char *' This is referring to 0xE900. Do you think it is possible to send me your code to gcorrea@cguelectronics.com in order to evaluate? Thanks

    C / C++ / MFC debugging

  • Text with backspace in Transparent window
    G gcorrea

    When I do that I get error C2660: 'Create' : function does not take 0 parameters

    C / C++ / MFC debugging

  • Text with backspace in Transparent window
    G gcorrea

    Hi Mr.Dootson: I had added // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMyFrameWnd) virtual BOOL PreCreateWindow(CREATESTRUCT& cs); //}}AFX_VIRTUAL in my Class declarations and your PreCreateWindow code as BOOL CMyFrameWnd::PreCreateWindow(CREATESTRUCT& cs) { if (!CWnd::PreCreateWindow(cs)) return FALSE; cs.dwExStyle |= WS_EX_CLIENTEDGE; cs.style &= ~WS_BORDER; cs.lpszClass=AfxRegisterWndClass( NULL, NULL, (HBRUSH) NULL); return TRUE; } How I have to change Create? I used: Create(NULL, _T("Frame Window")) but it doesn't works. I get and ASSERT in wincore.cpp Line:722 and there is not any text in my window. What >I am doing wrong? Thanks

    C / C++ / MFC debugging

  • Text with backspace in Transparent window
    G gcorrea

    Hi Mr. Dootson: Yes, I can see m_text contains "abc" after bakcspace but my transparent window shows "abcd". I need erase text or backspace draw in my transparent window. How can I do that? Do you have any idea?. Thanks

    C / C++ / MFC debugging

  • Text with backspace in Transparent window
    G gcorrea

    I want to know how I can write text with backspace in a transparent window. I am using this code but it does not work. #include <afxwin.h> ////////////////////////////////////////////////////////////////////////// // CMyFrameWnd class CMyFrameWnd : public CFrameWnd { public: CMyFrameWnd(); protected: CString m_Text; //{{AFX_MSG(CMyFrameWnd) afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnPaint(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; BEGIN_MESSAGE_MAP(CMyFrameWnd, CFrameWnd) //{{AFX_MSG_MAP(CMyFrameWnd) ON_WM_CHAR() ON_WM_PAINT() //}}AFX_MSG_MAP END_MESSAGE_MAP() CMyFrameWnd::CMyFrameWnd() { //Transparent window CString strMyClass=AfxRegisterWndClass( NULL, NULL, (HBRUSH) NULL); Create(strMyClass, _T("Frame Window")); } void CMyFrameWnd::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) { m_Text += nChar; if (nChar == VK_BACK) { m_Text = m_Text.Left(m_Text.GetLength() - 2); TRACE("\n%s", m_Text); } Invalidate(); } void CMyFrameWnd::OnPaint() { CPaintDC dc (this); dc.TextOut(0,0,m_Text); } ////////////////////////////////////////////////////////////////////////// class CMyApp : public CWinApp { public: CMyApp(){}; virtual BOOL InitInstance(); }; BOOL CMyApp::InitInstance() { m_pMainWnd = new CMyFrameWnd(); m_pMainWnd->ShowWindow(SW_SHOW); m_pMainWnd->UpdateWindow(); return TRUE; } CMyApp myApp; If I use a normal window changing: CString strMyClass=AfxRegisterWndClass( NULL, NULL, (HBRUSH) NULL); Create(strMyClass, _T("Frame Window")); to Create(NULL, _T("Frame Window")); backspace work well Can you give me any idea Thanks

    C / C++ / MFC debugging
  • Login

  • Don't have an account? Register

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