Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Deleting the CTabCtrl Border

Posted on 1998-07-20
1
Medium Priority
?
545 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 80 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

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. …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

670 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