Search:
Type: Posts; User: ovidiucucu
Search:
Search took 0.46 seconds.
-
February 6th, 2024, 05:39 AM
Here are few ways to find out if the second application is already running:
get a list running processes and see if one having the given image name is among them. Here you can find hints about...
-
March 7th, 2023, 02:51 AM
First of all, there's no BN_CLICK message identifier defined in Windows headers. Unless you are defined your own, you've probable referred to BN_CLICKED, which also is not a message identifier, but a...
-
January 20th, 2023, 08:37 AM
As Victor already suggested, an easy way to save a bitmap in a file is by using CImage MFC/ATL-shared class.
Here is a simplified example which saves the client area of a window (view).
void...
-
January 12th, 2023, 06:17 AM
You are welcome!
[off-topic]
Just joking a little bit: if I had to deal with that (legacy) code, I would be tempted to hit the monitor with the keyboard. :D
But no problem, everything can be...
-
January 12th, 2023, 05:45 AM
And about moving the child windows (controls) inside the client area of the parent...
One easy method is to get the client area of the parent (call CWnd::GetClientRect), calculate the the child...
-
January 12th, 2023, 03:45 AM
Returning to our sheep...
First note that all Windows controls like buttons, list boxes, combo boxes, and so on are windows, as well. You can see that in plain WinAPI: all are created by a call...
-
January 12th, 2023, 01:43 AM
Aside note...
Dealing with legacy projects is not an easy task and requires some knowledge and experience. Simply getting tweaks from old sources is not enough. This particular case requires at...
-
January 7th, 2023, 02:34 AM
You've probably got the "System" font, which size can be modified only from the system settings. Or can be another font that does not support the size you have provided.
Anyway it's not a good idea...
-
January 2nd, 2023, 07:35 AM
At a first look, your sample code contains not any MFC stuff. For example, TDC seems to be a Borland's OWL Library class and further are called just plain WinAPI functions (not MFC). I know,...
-
November 14th, 2022, 09:33 AM
It doesn't compile? And what the compiler says?
-
November 6th, 2022, 01:45 AM
As Victor already stated, we can do the magic by using Excel Automation. Here is an example:
void CExcelRunnerApp::OpenWorkbook(const CStringW& strFile,
const CStringW& strPassword,
BOOL...
-
October 28th, 2022, 02:28 AM
Thank you, Victor!
Just to add a method in which the receiver doesn't need to delete: using of smart pointers, i.e. std::unique_ptr since C++11.
Here is an example:
void...
-
October 27th, 2022, 11:22 AM
In SQL language, NULL simply means "unknown value" or "not yet set value". Because a primary key is intended to (unique) identify a record in a table, a NULL PK has no sense, so is not permitted.
-
October 27th, 2022, 10:44 AM
Neither Snipping Tool nor Print Screen resolve the problem if the window is covered by another. Please, read carefully the original post!
-
October 27th, 2022, 08:18 AM
DrawText takes an argument which is the rectangle in which the text is to be drawn. You probably enlarged the font size without adjusting that rectangle. You can determine the width and height of the...
-
October 27th, 2022, 07:42 AM
I can guess you are using or passing to the third party library paths relative to the application/process current directory (e.g. ".\data", "..\data" or just the file name). The current process...
-
October 27th, 2022, 02:00 AM
Taking a look in your sample code...
::PostMessage( dlghandle , WM_SOMEMSG , (WPARAM)&s, 0 );
PostMessage( WM_SOMEMSG , (WPARAM)&s, 0 );
...I have to add a little but important note, beside...
-
October 6th, 2022, 01:50 AM
Filesystem Library can help you you to easily perform operations on file systems components, such as paths, regular files, and directories. It was initialy developed in boost library and introduced...
-
October 4th, 2022, 05:33 AM
Here it is step-by-step!
1. Define a "transparent" color, preferable in the application's class header.
// ...
#define TRANSPARENT_COLOR RGB(1, 2, 254)
2. In the main frame class...
-
October 4th, 2022, 02:51 AM
Override CFrameWnd::RecalcLayout and...
class CMainFrame final : public CFrameWnd
{
// ...
// Overrides
virtual void RecalcLayout(BOOL bNotify = TRUE);
// ...
};
...after...
-
Well, using the "thousands" word here is a little bit exaggerated. :)
-
I know many projects developed for years using cross-platform libraries, but never targeted other OS than Windows.
IMO, the most optimal approach is to write as much as possible cross-platform code...
-
@Ketanco
Have you created a Windows Console Project or is something else?
35611
-
If the target OS is Windows, the best choice is Direct2D libray.
You can directly use Direct2D COM interfaces or, much easier, the MFC Support for Direct2D.
See
Direct2D
MFC Support for...
-
November 19th, 2018, 09:20 AM
That's a very good reason.
|
Click Here to Expand Forum to Full Width
|