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
T

tayspen

@tayspen
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • API Help
    T tayspen

    I just need to know how to change the size of it :(. To keep it there, just set the method and call it on a timer...

    C# linux json help tutorial question

  • API Help
    T tayspen

    API Help Posted: 19 Mar 2006 07:25 PM Hi, I use this -- [System.Runtime.InteropServices.DllImport("user32", EntryPoint = "FindWindowA")] private static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [System.Runtime.InteropServices.DllImport("user32", EntryPoint = "FindWindowExA")] private static extern IntPtr FindWindowEx(IntPtr hWnd1, IntPtr hWnd2, string lpsz1, string lpsz2); [System.Runtime.InteropServices.DllImport("user32")] private static extern IntPtr ShowWindow(IntPtr hwnd, int nCmdShow); [System.Runtime.InteropServices.DllImport("user32", EntryPoint = "SetWindowTextA")] private static extern bool SetWindowText(IntPtr hWnd, string lpString); [System.Runtime.InteropServices.DllImport("user32")] private static extern int EnableWindow(IntPtr hWnd, bool bEnable); [System.Runtime.InteropServices.DllImport("user32", EntryPoint = "GetWindowTextA")] private static extern int GetWindowText(IntPtr hWnd, string lpString, int nMaxCount); [System.Runtime.InteropServices.DllImport("user32", EntryPoint = "SendMessageA")] private static extern int SendMessage(IntPtr hWnd, int wMsg, int wParam, int lParam); private const int WM_LBUTTONDOWN = 513; private const int WM_LBUTTONUP = 514; private const int SW_HIDE = 0; private const int SW_SHOW = 5; private const int SW_MINIMIZE = 6; private const int SW_MAXIMIZE = 3; private const int SW_SHOWMAXIMIZED = 3; private const int SW_RESTORE = 9; public void Changetext() { IntPtr Taskbar = FindWindow("Shell_TrayWnd", null); IntPtr StartButton = FindWindowEx(Taskbar, IntPtr.Zero, "Button", null); SetWindowText(StartButton, "Blah"); EnableWindow(StartButton, false); EnableWindow(StartButton, true); } To change the text on the start button, and it works fine. But it can only have like 5 letters. could i use SetWindowPos to change the width of the start button, to allow for more letters? I have seen code in other langs that do this, And im pretty sire thats the method they take. If so could I see an example please :).

    C# linux json help tutorial 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