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

x
?
Solved

Getting the view style

Posted on 1999-07-20
3
Medium Priority
?
238 Views
Last Modified: 2013-12-18
I'm trying to check the view style using VIEW_FORMAT_HEADER.
      
pHeaderFormat->ViewStyle always returns 0     (pHeaderFormat a pointer to VIEW_FORMAT_HEADER structure) but pHeaderFormat->Version  returns correct answer
I'm using only ODSReadMemory to read the contents.
Can anybody explain why it happens like that.?
0
Comment
Question by:Basha
[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
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
ghassan99 earned 100 total points
ID: 1119934
These are the possible values of the ViewStyle:
VIEW_STYLE_TABLE  -  Table style view.
VIEW_STYLE_DAY        -  Calendar view, day style.
VIEW_STYLE_WEEK        -  Calendar view, week style.
VIEW_STYLE_MONTH  -  Calendar view, month style.

Try changing the view itself to one of these, then check the result. Or try and set it manually and recheck the result (ViewTableFormat.Header.ViewStyle = VIEW_STYLE_TABLE;) maybe the pointer is leaking!:)
0
 
LVL 6

Expert Comment

by:ghassan99
ID: 1119935
Did it work Basha?
0
 

Author Comment

by:Basha
ID: 1119936
Yes I got hassan but in a different way by reading the
$Flags item using NSFGetItemText

Thanks
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

664 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