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
C

code_discuss

@code_discuss
About
Posts
38
Topics
23
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [Message Deleted]
    C code_discuss

    [Message Deleted]

    The Lounge

  • how can I get the exe's theApp in a regular mfc dll?
    C code_discuss

    My project has two modules, one is mfc exe, the other one is a mfc regular dll. Now I'd like to get the CWinApp* pointer of the exe in a exported function of the dll. Can I use some kind of AfxGet...App/Module() to do that?

    C / C++ / MFC question c++

  • keep text selected in richedit
    C code_discuss

    I use a toolbar and a richedit control in a dialog to do some text edting. A common scenario is: the user select some text, then go to the toolbar to click some button. But my problem is that as soon as the user click the toolbar, the selection in richedit control disappear, which make the user puzzled. How can I keep the selection visible even if the focus is not in the rich edit?

    C / C++ / MFC question help

  • what kind of window can have a caret?
    C code_discuss

    ?

    C / C++ / MFC question

  • hook the WM_PRINTCLIENT evenet
    C code_discuss

    http://www.fengyuan.com/article/wmprint.html[^] and I strongly suggest you buy his book.

    C / C++ / MFC tutorial

  • what kind of window can have a caret?
    C code_discuss

    I find that edit box has a caret but button doesn't. What's the main differenct of them?

    C / C++ / MFC question

  • how to spy++ a windows which will hide when it lose focus?
    C code_discuss

    Yes I know. But now it's difficult for me to find that window using spy++. The windows appears to be hidden, but it may already be destroyed. If it's destroyed when losing focus, I can't find it using spy++. But I really want to find that window and find its class name, window text, ect, which info I can use to find them by code. So.. Please help me out.

    C / C++ / MFC question tutorial

  • how to spy++ a windows which will hide when it lose focus?
    C code_discuss

    I'd like to use spy++ to watch on a window, but that window will hide automatically when it lose focus, which means it will hide as soon as I lauch/switch to spy++. So how can I do that?

    C / C++ / MFC question tutorial

  • static library in two modules
    C code_discuss

    I define int gC in a cpp file in the static library project. In b.dll and a.exe, when I want to use gC, I use extern int gC;

    C / C++ / MFC question c++

  • static library in two modules
    C code_discuss

    I have one static library named c.lib, in which there is a global member int gC; Two other modules, a.exe and b.dll(regular dll using mfc), link to c.lib. I found that the address of gC is different in a.exe between in b.dll. Is it strange? How can I make only one global int gC?(but used both in c.lib, b.dll, and a.exe)

    C / C++ / MFC question c++

  • how not to draw outside a static control?
    C code_discuss

    Yes I agree. Thank you very much, you did let know why I have this bug and how I can fix it. I used SelectClipRgn() to fix it, which is similiar to your GetDCEx.

    C / C++ / MFC question learning

  • how not to draw outside a static control?
    C code_discuss

    I'm using a static control to draw something on it. the static is in a dialog create by resource editer. It's strange that I can draw outside the static contol, but not outside the dialog. How can I prevent this? I want to draw only inside the static contol.

    C / C++ / MFC question learning

  • STL, or MFC's Array/List?
    C code_discuss

    I'm a Windows programmer and use MFC heavily. But in many forum/newsgroup STL seems to be a must have for a c++ programmer. So I'm curious that should I use STL or MFC's array/list in my project? STL seems to be a standard, but MFC's array/list fit in the MFC structure well.

    C / C++ / MFC c++ data-structures question

  • WM_PAINT and WM_ERASEBKGND
    C code_discuss

    Can anyone show a condition when WM_PAINT is sent but WM_ERASEBKGND is not? or when WM_ERASEBKGND is sent but WM_PAINT is not?

    C / C++ / MFC question

  • Are the message boards SEO friendly?
    C code_discuss

    I often found CP's atticles in google's search result, but I seldom got one from CP's message board. So I suspect ...

    Site Bugs / Suggestions question

  • where is 'Messages Since' filter?
    C code_discuss

    I can't see any messages for article(http://www.codeproject.com/KB/library/XuiFramework.aspx[^]) and I get the hint to change the 'Messages Since' filter. but where is the filter?

    Site Bugs / Suggestions com question

  • how do I know the message in hook procedure KeyboardProc()?
    C code_discuss

    I set a keyboard hook and my KeyboardProc() get called on WM_KEYDOWN. But I need to know the message which trick the key board hook. I need to know which HWND the current key down message is sent to. The thress passed in parameters 'code, wParam, lParam' don't give me any hint.

    C / C++ / MFC question

  • what's the difference to draw in WM_PAINT and in WM_ERASEBKGND?
    C code_discuss

    I read some articles in codeproject and found in some owner draw related articles, some authors write code in WM_PAINT, others write in WM_ERASEBKGND I'm curious what's the difference?

    C / C++ / MFC question

  • how to debug thread in other process? CreateRemoteThread
    C code_discuss

    I'm using CreateRemoteThread to do some code injections: taget.exe; load.exe(call CreateRemoteThread); code.dll I want to use load.exe to call CreateRemoteThread, the thread function is RemoteThreadProc, then in RemoteThreadProc, load code.dll. But now I have a problem of debugging. How can I see the code runing step by step in RemoteThreadProc()? I can't set a break point there! and then, now can I run the code step by step in code.dll?

    C / C++ / MFC tutorial question debugging help

  • Can I write a program that's spinned on the desktop, just like wallpaper?
    C code_discuss

    I'd like to write an app runs like the wallpaper, it lays on desktop always, just like wallpaper, but it can also get mouse/keyboard messages, it that possible?

    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