Solved

Changing dialog appearance

Posted on 2000-04-12
4
316 Views
Last Modified: 2013-11-20
Hi,

I want to change the appearance of my CDialog (um, Dialog App) wgile the program's running, but I have no idea if this is possible. I think it is since I found some functions called "ModifyStyle" and "ModifyStyleEx" (but can't get them to do what I want). I want to add/remove the border of my dialog when the user hits a certain key... I don't know if it's possible but still.

Thanks :)
0
Comment
Question by:mgdPaul
[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
  • 2
4 Comments
 
LVL 5

Expert Comment

by:vachooho
ID: 2709862
ModifyStyle(WS_BORDER, 0); // to remove
ModifyStyle(0, WS_BORDER); // to add
do not forget to call UpdateWindow();
it should works
0
 

Author Comment

by:mgdPaul
ID: 2709883
Thanks! :) It works indeed :)
Only one thing, when I use this the title bar does disappear, but there's still some kind of border around my dialog... is it also possible to remove the entire border? (like when you select "Border: None" in the resource editor/dialog properties)
0
 
LVL 5

Accepted Solution

by:
vachooho earned 50 total points
ID: 2709957
look in dialog editor and notice with which flags your dialog created.
Then remove all set flags using ModifyStyle()

actualy window with no frAME coudl have only WS_POPUP (or other WS_xxx window style - WS_OVERLAPPED ... ) and WS_VISIBLE visibility flags.
0
 

Author Comment

by:mgdPaul
ID: 2709993
Thanks! :)
This seems to work just fine :)
0

Featured Post

Independent Software Vendors: 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

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 …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

707 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