View Single Post
  #2 (permalink)  
Old 03-19-2007, 02:07 AM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 297
Karpagarajan is on a distinguished road
Thumbs up 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.
Reply With Quote