You need to clear these two flags IMF_DUALFONT and IMF_AUTOFONT to keep font unchanged.
uint lParam; lParam = SendMessage(richTextBoxMessage.Handle, EM_GETLANGOPTIONS, 0, 0); lParam &= ~(IMF_DUALFONT | IMF_AUTOFONT); SendMessage(richTextBoxMessage.Handle, EM_SETLANGOPTIONS, 0, lParam);
private const uint IMF_AUTOFONT = 0x02; private const uint IMF_DUALFONT = 0x80; private const uint WM_USER = 0x0400; private const uint EM_SETLANGOPTIONS = WM_USER + 120; private const uint EM_GETLANGOPTIONS = WM_USER + 121; [System.Runtime.InteropServices.DllImport("USER32.dll")] private static extern uint SendMessage(System.IntPtr hWnd, uint msg, uint wParam, uint lParam);
In current Internet environment, every PC is assigned a private IP. If global IP is…
[code lang="python"] logfilename = os.path.join( os.path.dirname(os.path.realpath(__file__)), os.path.splitext(os.path.basename(__file__))[0] + '.log') [/code] __file__ is the script file…
I don't know what is going wrong but... How to fix it Open the solution…
Create a break point that hits when CreateProcess was called Enter a Function Breakpoint Enter…
#include #include #include #pragma comment(lib, "Shell32.lib") using namespace std; class MyClass { public: MyClass() {…