Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to create Custom Grid which shall have inline edit feature, Checkbox, Radio button and Images.
I came across very good article << http://www.codeproject.com/Articles/8/MFC-Grid-control;
Here DrawFrameControl is used to draw Check box and Radio Button
I have a requirement to customize the look and feel of check box.
Is it possible to customize DrawFrameControl's or is a good idea to create custom control (check box and radio button)?
Will there be any performance issue in case of custom controls?
Regards,
Sanjay
No. You can't customize DrawFrameControl. It uses the system standard to draw the control.
If you need to customize it you have to draw the items by yourself. But using an image list it shoudn't be complicated to. Using CImageList is well documented everywhere ...
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 months ago.
Improve this question
I want to create an application using MFC that mainly runs in background, and show the system cpu usage on the taskbar just like the system date in the taskbar shown in the below.
Key feature is:
an icon in the taskbar;
change the words or info intervally.
How to implement this?
There are public APIs you can use to display yourself in the taskbar:
Shell_NotifyIcon to create a "tray" icon. You can update the icon as often as you want. This is what Task manager does.
Taskbar toolbar (IDeskBand). This lets you create a much larger surface in the taskbar. Currently not supported on Windows 11.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to make desktop application with cpp and make a completely new form and I don't want to use winforms or any external addons just cpp.
When presenting output to screen you almost always have to call some kind of system call at some point. So the next closest thing to winforms is probably the winapi, but you could try some kind of graphical library for example sdl2 or sfml which encapsulates these calls with their own api. But you wouldn't have all these nice native windows buttons and tabviews and scrollbars and textboxes and ... only some basic shapes, images and pixel buffers
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
This is regarding the C/C++ language ->
Is there some kind of Windows API that checks if a given position on the screen is clickable? For example, the windows icon on the bottom left, the red X on the top right of a program, or maybe the "enter" button in a web browser's search engine.
This sounds a bit complex, but maybe through IPC there's a way to do something like this? Thanks!
EDIT: By clickable, i mean anything you can associate with / interact with.
Almost anything on screen is clickable (except things that hit-test as HTERROR, HTNOWHERE and HTTRANSPARENT).
The sane approach is to use UI Automation/MSAA. Call WindowFromPoint, ChildWindowFromPoint or RealChildWindowFromPoint to get a HWND and then call AccessibleObjectFromWindow to get a IAccessible interface and call accDoDefaultAction.
A less sane option is to use WM_NCHITTEST to figure out what the mouse is over and send some fake WM_NCLBUTTON* messages.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i wanna create a text field and when a user type a word it will check and if it equals to "test" for example, test's color will changes to red and so on
im using c++builder, so how can it be done?
You can use a TRichEdit for that. You can use its SelStart and SelLength properties to select the word and then use its SelAttributes->Color property to change the word's font color (or use the Win32 API equivalents). Refer to the following article for some details about how to implement a "syntax highlighter" with TRichEdit:
Faster rich edit syntax highlighting
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I know that there are WYSIWYG editors available for GUI development, but are those the best way?
I know that in HTML if you use a WYSIWYG editor like Dreamweaver, what it produces will work but it will produce bad code that causes the program to not be as efficient as it could be.
Is it the same deal with C++ and other compiled languages?
Edit: I'll be developing for Windows 7. I probably wont be needing anything fancy like progress bars, just basic things like buttons, tick boxes, and a place to display output. It will just be running CMD commands based on what the user has selected before running it and displaying CMDs output in the program.
I guess the question I specifically wanted answered is whether it is best to "hand code" the GUI like you would in HTML, or if WYSIWYG editors are the way to go.