Solved

Changing dialog appearance

Posted on 2000-04-12
4
302 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

Technology Partners: 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

Title # Comments Views Activity
has22 challenge 11 107
isEverywhere  challenge 19 86
Window placement 17 95
Fibonacci challenge 11 138
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

730 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