Solved

Deleting the CTabCtrl Border

Posted on 1998-07-20
1
499 Views
Last Modified: 2013-11-20
While trying to delete the border from a CTabCtrl I am doing this :
      long x = GetWindowLong(m_Tab,GWL_STYLE);
      x |= ~WS_BORDER;
      SetWindowLong(m_Tab,GWL_STYLE,x);
But the TabCtrl is not changed .
Why is that ??????????
0
Comment
Question by:sector
1 Comment
 
LVL 9

Accepted Solution

by:
Priyesh earned 40 total points
ID: 1319469
Ilanmoshe..
     I think u have got a mistake.... u have to "and" it not "or".. u know 1 & 0 = 0 and 1 | 0 = 1
so the code is x &= ~WS_BORDER if u want to remove the border..
See the border bit is set and u and a 0 with it to remove it.. if u or a 0, the set bit is unchanged..
   Regards..
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sumDigits challenge 9 98
bigDiff challenge 17 75
Fibonacci challenge 11 84
Problem to event 3 52
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now