Solved

Deleting the CTabCtrl Border

Posted on 1998-07-20
1
539 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

624 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