Questions tagged [dialogbasedapp]
17 questions
10
votes
5 answers
How do I force my app to come to the front and take focus?
I'm working on an application that happens to be the bootstrap for an installer that I'm also working on. The application makes a few MSI calls to get information that I need for putting together the wizard that is my application's main window,…

RobH
- 1,607
- 2
- 24
- 44
7
votes
2 answers
Why doesn't OnKeyDown catch key events in a dialog-based MFC project?
I just create a dialog-based project in MFC (VS2008) and add OnKeyDown event to the dialog.
When I run the project and press the keys on the keyboard, nothing happens. But, if I remove all the controls from the dialog and rerun the project it…

Moh
- 1,887
- 3
- 18
- 29
2
votes
2 answers
Win32 dialog based borderless window with bitmap background and visual styles
i'm new to StackOverflow so forgive me for any stupid mistakes I make on the post.
I'm having an issue to create a borderless window with a bitmap background using the Win32 API (no MFC) and a dialog based application. I'm using visual studio…

Martins.A
- 130
- 2
- 10
1
vote
2 answers
can we draw shapes (line,circle , etc.) in dialog-based mfc visual studio 2010?
I want to implement an oscilloscope to display some different frequency via dialog-based MFC visual c++, but as I googling too much , I found out that the only way to drawing shapes in visual c++ is to use SDI or MDI !
I want to know if there is a…

Saeed Taheri
- 41
- 1
- 4
- 8
1
vote
0 answers
MFC C++ Dialog based application UI
I am developing a MFC dialog based windows application in VS2019 C++. Is there any library available for the UI design, such as adding background images, colors, font styles, buttons etc?
If anyone has any suggestions regarding the UI design of MFC…

Jamiul alam khan
- 159
- 1
- 10
1
vote
0 answers
Open a text file or html file with a button click in MFC
i have created dialog based MFC application with VS 2012 and want to open a text file window without the user having to browse it just like when we click a file it opens similarly in my application text file must be open when button is…

Pallavi Rai
- 13
- 4
1
vote
3 answers
OnCtrlColor Not Working?
I used the following overloaded method to change the text color to red in a listbox, in a Visual C++ MFC dialog based application. When I build the program in DEBUG mode, it works perfectly. But when I use the RELEASE mode the text color doesn't…

Isuru
- 182
- 1
- 2
- 11
1
vote
0 answers
Dialog menu not receiving Enter key
I’m currently writing an MFC dialog app which has a menu. The menu displays correctly and the menu entries work correctly via mouse, accelerators, and hotkeys (e.g., to quit: Ctrl+Q or Alt+F,Q).
Unfortunately, the Enter key doesn’t seem to work.…

Synetech
- 9,643
- 9
- 64
- 96
1
vote
2 answers
How to specify individual List item's Font color in VC++ WTL
I have list box CListBox in which i need to specify the color of individual list item according to some condition. How can i achieve this.
Im running VS2005.
The application is a WTL Dialog based app.

Rohit Vipin Mathews
- 11,629
- 15
- 57
- 112
1
vote
3 answers
"First-chance exception" meaning in MFC Application?
When I run my Windows Application(MFC) I get two Warnings.
First-chance exception at 0x01046a44 in XXX.exe: 0xC0000005: Access violation reading location 0x00000048.
First-chance exception at 0x75fdb9bc (KernelBase.dll) in XXX.exe: 0x000006BA: The…

vasanth kumar
- 522
- 1
- 5
- 18
0
votes
0 answers
Update an MFC EditControl
I have a login dialog for my MFC application in Visual Studio. By pressing an 'eye' button, the password attribute of the edit control gets enabled/disabled.
This works as expected; however, after pressing the button, the displayed text inside the…

Medic 84
- 1
0
votes
0 answers
How To Design a MFC Application That Will Work On All Resolutions
I'm currently working on the MFC application in Visual Studio 2017 which is having the dialogs designed for resolution 1920 x 1080, but now I want to modify it and make it scalable for all resolution.
What changes should I make to the application so…

Pooja
- 1
- 1
0
votes
1 answer
Converting a Console Program into an MFC app (Thread issues) (Pleora SDK)
Back to stackoverflow with another question after hours of trying on my own haha.
Thank you all for reading this and helping in advance.
Please note the console program has following functionalities:
connect to a frame grabber
apply some…

Tabasco
- 35
- 6
0
votes
1 answer
MFC Dialogue based application
Good day, I am trying to add a bitmap image to my dialogue-based application using MFC ( VSTUDIO 2019 ). I wish to position my image at the center of the application. How do I get the size of the current rectangle so that it can be given as an input…

Justin M
- 29
- 3
0
votes
2 answers
draw simple rectangle in MFC Dialog-Based
I wrote this code to draw a simple rectangle in a dialog , I also added ON_WM_PAINT() to my message map. but it didnt show anything on dialog to me ! I really appreciate it if anyone could tell my mistakes in code:
void Ctest4Dlg::OnPaint()
{
if…

Saeed Taheri
- 41
- 1
- 4
- 8