Click here to Skip to main content
15,925,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionApp with no titlebar/border? Pin
bobthe14-Sep-03 20:09
bobthe14-Sep-03 20:09 
AnswerRe: App with no titlebar/border? Pin
R. Thomas14-Sep-03 22:25
R. Thomas14-Sep-03 22:25 
GeneralAdding WindowsMessageHandlers to a Registered ActiveX Control (HELP ME!) Pin
nsaadyah14-Sep-03 18:59
nsaadyah14-Sep-03 18:59 
GeneralSocket file transfer Pin
vision200414-Sep-03 18:49
vision200414-Sep-03 18:49 
GeneralRe: Socket file transfer Pin
SatyaDY14-Sep-03 18:54
SatyaDY14-Sep-03 18:54 
GeneralMenu hot key problem Pin
Shah Shehpori14-Sep-03 18:48
sussShah Shehpori14-Sep-03 18:48 
GeneralRe: Menu hot key problem Pin
Jagadeesh VN14-Sep-03 19:49
Jagadeesh VN14-Sep-03 19:49 
GeneralTrouble in hooking API using Microsoft Detours Pin
wolong14-Sep-03 17:50
wolong14-Sep-03 17:50 
Hello, gurus! I try to hooking TextOutA,TextOutW,ExtTextOutA,ExtTextOutW in a Dialog using Microsoft Detours. And turn the string to uppercase before display it.
It works fine in the client area, such as button control,static control and etc. But the Dialog's caption and menu is still in lowercase. Why?
//dlg.cpp
DETOUR_TRAMPOLINE(BOOL __stdcall Real_TextOutA(HDC a0,
int a1,
int a2,
LPCSTR a3,
int a4),
TextOutA);

BOOL __stdcall Mine_TextOutA(HDC a0,
int a1,
int a2,
LPCSTR a3,
int a4)
{
BOOL rv = 0;
char *p = _strdup(a3);
_strupr(p);
rv = Real_TextOutA(a0, a1, a2, p, a4);
free(p);

return rv;
}

CMyDlg::OnInitDialog()
{
DetourFunctionWithTrampoline((PBYTE)Real_TextOutA,
(PBYTE)Mine_TextOutA);

return CDialog::OnInitDialog();
}



GeneralCBrush... Pin
R. Thomas14-Sep-03 16:42
R. Thomas14-Sep-03 16:42 
GeneralRe: CBrush... Pin
Jagadeesh VN14-Sep-03 19:51
Jagadeesh VN14-Sep-03 19:51 
GeneralRe: CBrush... Pin
R. Thomas14-Sep-03 20:08
R. Thomas14-Sep-03 20:08 
GeneralRe: CBrush... Pin
Jagadeesh VN15-Sep-03 3:32
Jagadeesh VN15-Sep-03 3:32 
GeneralHelp me! About USB Operate... Pin
njbull14-Sep-03 16:14
njbull14-Sep-03 16:14 
GeneralVS_VersionINFO Resources Pin
IceBerG7114-Sep-03 16:06
IceBerG7114-Sep-03 16:06 
GeneralRe: VS_VersionINFO Resources Pin
Frank K14-Sep-03 23:03
Frank K14-Sep-03 23:03 
QuestionHow to call system command in c++ code? Pin
sheepeast14-Sep-03 15:11
sheepeast14-Sep-03 15:11 
AnswerRe: How to call system command in c++ code? Pin
keegan14-Sep-03 17:18
keegan14-Sep-03 17:18 
GeneralWindows sockets Pin
mweiss14-Sep-03 13:10
mweiss14-Sep-03 13:10 
GeneralRe: Windows sockets Pin
geo_m14-Sep-03 22:43
geo_m14-Sep-03 22:43 
GeneralRe: Windows sockets Pin
mweiss15-Sep-03 10:42
mweiss15-Sep-03 10:42 
GeneralRe: Windows sockets Pin
geo_m15-Sep-03 21:48
geo_m15-Sep-03 21:48 
Generalhelp a few more programs im so close Pin
colin2114-Sep-03 13:08
colin2114-Sep-03 13:08 
GeneralRe: help a few more programs im so close Pin
R. Thomas14-Sep-03 16:45
R. Thomas14-Sep-03 16:45 
GeneralRe: help a few more programs im so close Pin
R. Thomas14-Sep-03 16:47
R. Thomas14-Sep-03 16:47 
GeneralRe: help a few more programs im so close Pin
R. Thomas14-Sep-03 22:34
R. Thomas14-Sep-03 22:34 

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.