I implemented my own CMFCToolTipCtrl class in order to modify enhanced tooltip in Ribbon Control.But I'm unable to determine Resource ID from NMHDR Structure.How to get it ?
//////////////////////////////
MainApp.cpp
//////////////////////////////
CMFCToolTipInfo ttParams;
ttParams.m_bVislManagerTheme =FALSE;
theApp.GetTooltipManager...
Hello all,
I'm having a wierd problem. i'm developping a nice game with openGL on MFC. i need to use threads for multi sound. so i am trying to use the BASS lib for that.
For a reason that is beyond my comprihention, i can not get the bass.lib to link. all other libs (openGL libs and so on) link perfect.
i'v added "#include "base.h" ...
21st July: Updated, see bottom
In VC++ 2005 I have 2 projects. Firstly, a MFC DLL project (not an extension DLL) which has a simple dialog:
TestDlg.h
#pragma once
#include "afxwin.h"
#include "resource.h"
// CTestDlg dialog
namespace Dialogs
{
class __declspec(dllexport) CTestDlg : public CDialog
{
DECLARE_DYNAMIC(CTes...
I'm a beginner with Bass (working right now on an MFC project) and I'm trying to figure this out.
I saw that I should start with the BASS_Init function, but I found two example, one with 4 parameters and one with 6.
When I trying to use the function, it only gives a 5-parameter version with no overloads, and when I try to use it, my ap...
I'm trying to create context menu using TrackPopupMenu function in my application, the code I use in it is like the following:
CMenu menu;
if (menu.LoadMenu(IDR_MENU_TRAY))
{
CMenu* pSubMenu = menu.GetSubMenu(0);
if (pSubMenu != NULL)
{
pSubMenu->ModifyMenu(IDM_CLOSE,MF...
I need a terminal Widget which is able to emulate a windows console and a simple VT100 terminal on Windows. Something like VTE for GTK or QConsole for QT.
Is it even possible to run a Windows Console like cmd.exe inside a child window?
...
Hi. I've narrowed down a problem.
I create a simple Dialog app with
VC++ 6.0.
I start a thread before the main
dialog DoModal() is called
I exit the application - sometimes
the app shuts down immediately,
other times it hangs for 10 seconds
or so
What causes this? I have tried _beginthread(), _beginthreadex() and AfxBeginThread(). T...
I am currently using RichText control in my program. It creates several instances of RichText control (hundreds) because it’s a sticky notes program.
I wish to replace it with a lightweight HTML control which will have functionality similar to RichText control (text formatting, bullets, links, images etc)
Do you know if any free/commer...
i had written code for creating hidden window, but in a dll & messages are not getting posted to the hidden window. my requirement is to post the messsages to the hidden window from the hidden window itself.
i'll just call start function of this hidden window then it will create & process the user defined message (this is my requirement...
It is necessary to switch off the "ClearType" property of the default font for all dialog controls. It is possible to do that for one control by setting
logfont.lfQuality = ANTIALIASED_QUALITY
There are a lot of suggestion how to do the same for modal dialogs (http://neelaakash.wordpress.com/2007/12/31/change-default-dialog-font-of-cd...
This is like the question
http://stackoverflow.com/questions/153748/webbrowser-control-from-net-how-to-inject-javascript
But i don't know how to transform this code into good old MFC C++ code.
For example what is the InvokeScript method, i can't find it anywhere.
Isn't .NET webbrowser the same as IWebBrowser2 ?
...
I've inherited maintenance for a program which currently queries an ADODB database from within its CView::OnBeginPrinting override. However, when the ADODB database handle is a proxy for an out-of-process database connection, this crashes frequently - apparently, while waiting for an RPC response, a paint message causes it to reenter CVi...
Hi i have three controls (CButtton) in my application,whenever mouse move over a control,i want to capture when mouse enters on which control in a window and when it leaves and i have to change the caption of a button control.
Thanks in Advance
...
hello forks, my backgrounds are C/python/pyqt, and I was forced to use MFC for GUI programming(by my boss, in the consideration that he can assign this job to others in the future). and I encountered this problems:
how to create a tab control (found one solution on internet)
how to create a table view
how to use json, sqlite or other t...
how to arrange dialogs programmatically in MFC in cascade format, other than simply using SetWindowPos based upon the position of the previous displayed window.
The Dialog position is to be loaded from the registry(in my app) so we use
SetWindowPos(NULL,x,y,cx,cy,SWP_NOZORDER); for the dialog , Ater then if we use CascadeWindows func...
I'm writing a C# application which needs to intercept Window Messages that another applications is sending out. The company who wrote the application I'm monitoring sent me some example code, however it's in C++ which I don't really know.
In the C++ example code I've got they use the following code:
UINT uMsg = RegisterWindowMessage(S...
There's a great code sample in this post:
http://stackoverflow.com/questions/2399954/datetimepicker-automatically-move-to-next-datepart
which shows how to clean up some of the behavior of the DateTimePicker in .NET. Unfortunately the code won't compile, since .NET can't understand the WM_KEYDOWN type stuff. I was able to google a...
My application uses MFC CTreeCtrl. One of the nodes of the tree has a ComboBox control of DropDownList style.
In Windows 7, if we were to select an option from the ComboBox dropdown and then click on another node of the tree, the new node gets highlighted but the focus remains with the CComboBox control!
I don't see this behavior on Win...
I'm working on a project using VC++/MFC and I need to read data from Word documents. I've Googled, but can't find any viable solutions. How can I get started in this MFC? Any help would be appreciated!
UPDATE: Information I can find on the MS support site and Google is really out-of-date, and I need work with on Word 2003 or 2007.
...
I am calling one dialog box from another.....before calling 2nd dialog box i am hiding the 1st dialog box using ShowWindow(SW_HIDE) and after finishing the operation on 2nd dialog box i destroy it....now when the control comes back to the function i am using ShowWindow(SW_SHOW) to show the 1st dialog again but it remains hidden..can anyb...