Solved

Deleting the CTabCtrl Border

Posted on 1998-07-20
1
534 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

752 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