?
Solved

Changing dialog appearance

Posted on 2000-04-12
4
Medium Priority
?
319 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 200 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

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: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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 outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

770 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