Enenra
Enenra
CC#
Created by Enenra on 12/17/2022 in #help
❔ WM_FONTCHANGE
ok, I've got the whole code completed but it doesn't seem to be working:
public const int WM_FONTCHANGE = 0x001D;

[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern int SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);

void Test()
{
long msg = SendMessage(0xffff, WM_FONTCHANGE, IntPtr.Zero, IntPtr.Zero);
MessageBox.Show(msg.ToString());
}
public const int WM_FONTCHANGE = 0x001D;

[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern int SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);

void Test()
{
long msg = SendMessage(0xffff, WM_FONTCHANGE, IntPtr.Zero, IntPtr.Zero);
MessageBox.Show(msg.ToString());
}
Even after changing the font it stays the same, my approach is working 100% because once I restart the computer or log out and back in it's changed, it's something to do with this if it's what I needed in the first place.
4 replies
CC#
Created by Enenra on 12/17/2022 in #help
❔ WM_FONTCHANGE
please @ me if you are able to help
4 replies