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
O

olinn

@olinn
About
Posts
16
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • API Hooking question
    O olinn

    I want to hook some APIs. I has some questions when reading the article on codeproject website http://www.codeproject.com/dll/apihijack.asp[^] The sample in that article is to hook DirectDrawCreate function in DDRAW.dll, and change it with his own function in his own dll. I am just wondering why he set a global WH_CBT hook but with a callback function doing nothing (just do CallNextHookEx). When I made some mouse hook or keyborad hook, I always did my work in the callback function, so I am confused that why we changed when do API hooking. Thanks in advance!

    C / C++ / MFC com json question

  • About OnCtlColor
    O olinn

    Yeth, I also found that is the point just now. It seems that the ON_WM_CTLCOLOR message could only be managed by parent wnd, I replaced it with ON_WM_CTLCOLOR_REFLECT and overrided CtlColor() (not OnCtlColor) and it worked. Thank you. Does it means only I need is to manage the ON_WM_CTLCOLOR_REFLECT message but ON_WM_CTLCOLOR?

    C / C++ / MFC question

  • About OnCtlColor
    O olinn

    Thank you. I saw the source code and found the way he accomplished the work seamed the same as mine. I just wonder why my overrided message handler OnCtlColor didn't be executed, as I set a break point in the handler, no stoping occured when I debuged.

    C / C++ / MFC question

  • About OnCtlColor
    O olinn

    I want a button to diplay the red text sometime, so I create a class derived from CButton and override the OnCtlColor handler, as below: HBRUSH CColorButton::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = CButton::OnCtlColor(pDC, pWnd, nCtlColor); if(m_iFlag == 1) pDC->SetTextColor(0x000000ff); return hbr; } but I found the handler didn't be executed even when the dialog initialized, How can I do the work I want. Thanx.

    C / C++ / MFC question

  • how to display a colored text on controls?
    O olinn

    Do you mean I should create a new class, inheriting from the orignal control class, for my control which I want to color its text. Then overridde the OnCtlColor function of the class, use CDC::SetTextColor to set the text color? I am not good at programing, please say it somewhat detailedly. Thanks a lot!

    C / C++ / MFC tutorial question

  • how to display a colored text on controls?
    O olinn

    make texts of the control or the static text have color

    C / C++ / MFC tutorial question

  • how to display a colored text on controls?
    O olinn

    I want to manage some of my radio buttons and some of my static texts have colored text when the dialog receive a certain message, but other controls donot. How to do this? thanx.

    C / C++ / MFC tutorial question

  • About SetIcon
    O olinn

    I want to paste a icon from resource to a button by using SetIcon(), but neither m_bttnOpen.SetIcon(AfxGetApp()->LoadIcon(IDI_ICON_OPEN)); nor m_bttnOpen.SetIcon(::LoadIcon(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDI_ICON_OPEN))); can do this. Why? And how to do this by the most simple way? thankx

    C / C++ / MFC tutorial question learning

  • CPropertySheet & CPropertyPage
    O olinn

    about 1: i don't understand your problem, Isn't all we need to addpage before creating the propertysheet? Then all the page you add will be shown.

    C / C++ / MFC question debugging announcement

  • Full screen problem
    O olinn

    many games are running under full screen mode, but this may cause some inconvenient matter after you quit it or tab to other application. How can I make a program to make them running in stardard window mode, of cause the games themselvies don't have this option. Thank you!

    C / C++ / MFC help question

  • CSocket possible bug on win2k
    O olinn

    Oh, I am still working with VC++ 6.0 (mfc42) and cannot help you. And I have a problem, too. Could you do me a favor? When I use winsock (CSockect e.g.) to recieve the message of websites by sending "Get ...", majority are no problem but others can't work. I opened these ones in IE, They displayed a Security Alert messagebox with "Information you exchange with this site cannot be viewed or changed by others. However, there is a problem with the site's security certificate." Why I recieve nothing under this condition?

    C / C++ / MFC help question

  • CSocket possible bug on win2k
    O olinn

    what bug? return value error?

    C / C++ / MFC help question

  • a problem on Installshield for VC++
    O olinn

    when i create a project following the wizard, I may find the final installation files include all the files i put into the file group of this project such as my exe file, my icon file and so on. Someone told me I can create a single setup.exe file by using the tool PackageForTheWeb of installshield, but I still want to know how can i create a project only include some installshield stardard files (i.e. data1.cab, licence.txt, setup.exe and so on) just like some other softwares. I think all my own program files should be in the data1.cab, shouldn't it? Thank you.

    C / C++ / MFC question c++ help workspace

  • Registry HELP
    O olinn

    (1)(3)RegSetValueEx (2)RegQueryValueEx see other functions in msdn: RegCloseKey RegConnectRegistry RegCreateKey RegCreateKeyEx RegDeleteKey RegDeleteValue RegEnumKey RegEnumKeyEx RegEnumValue RegFlushKey RegGetKeySecurity RegLoadKey RegNotifyChangeKeyValue RegOpenKey RegOpenKeyEx RegQueryInfoKey RegQueryMultipleValues RegQueryValue RegQueryValueEx RegReplaceKey RegRestoreKey RegSaveKey RegSetKeySecurity RegSetValue RegSetValueEx RegUnLoadKey

    C / C++ / MFC tutorial c++ windows-admin help learning

  • a problem on WinExec
    O olinn

    It works! Thanks a lot.

    C / C++ / MFC help question

  • a problem on WinExec
    O olinn

    I can use this command line "exefilename.exe -? >>a.txt" in Windows command prompt to store the parameter information into a.txt. But when I use WinExec to execute this command in my program, it doesn't work. neither does ShellExecute. The only thing it does is displaying the parameter info in the command prompt terminal (I can see the prompt flashing). Thank you to help me!

    C / C++ / MFC help 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