Re: VC++ Tips & Tricks Hi all,
Below I have given the trick to create borderless window in Visual C++. Hope it will be very useful for your vc++ project. BORDERLESS WINDOW DWORD dwStyle = GetWindowLong((ProgEntry->m_Prog).m_hWnd, GWL_STYLE);
SetWindowLong((ProgEntry->m_Prog).m_hWnd, GWL_STYLE, dwStyle ^ WS_BORDER);
SetWindowLong((ProgEntry->m_Prog).m_hWnd, GWL_EXSTYLE,
GetWindowLong((ProgEntry->m_Prog).m_hWnd, GWL_EXSTYLE)^WS_EX_CLIENTEDGE);
simple code but very useful... 
__________________ Karpagarajan. R Necessity is the mother of invention
Last edited by Booom : 08-09-2007 at 04:37 AM.
|