15,746,534 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Javascript questions
View C++ questions
View Python questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 14594285 (Top 200 by date)
Member 14594285
18-Sep-23 10:30am
View
but I have already diaog box, I must call it from software
Member 14594285
18-Sep-23 10:23am
View
which detail do you need? So Must I call a CWnd pointer?
Member 14594285
9-Aug-23 2:40am
View
I have this error: "you must add a reference to assembly 'netstandard, Version=2.0.0.0'" but if I add netstandard I have error for type string, int.."
Member 14594285
8-Aug-23 12:06pm
View
ok thanks, but I have still problems with netstandars, I don't know how can I do
Member 14594285
8-Aug-23 11:04am
View
I improved my question
Member 14594285
8-Aug-23 6:03am
View
so how must I do to add netstandard without have errors?
Member 14594285
27-Jul-23 5:37am
View
thaks very much, it works
Member 14594285
27-Jul-23 5:14am
View
so must I do a class? I can't modifie my code?
Member 14594285
27-Jul-23 4:47am
View
I have an error and when I click on error vs shows this code:
void CArray<type, arg_type="">::SetAtGrow(INT_PTR nIndex, ARG_TYPE newElement)
{
ASSERT_VALID(this);
ASSERT(nIndex >= 0);
if(nIndex < 0)
AfxThrowInvalidArgException();
if (nIndex >= m_nSize)
SetSize(nIndex+1, -1);
m_pData[nIndex] = newElement;
}
Member 14594285
27-Jul-23 4:35am
View
In this way? :
struct elemento
{
CString str_valore;
CString str_nome;
};
CArray <elemento, elemento=""> m_arr;
CArray <carray <elemento,="" elemento="">> m_arr1;
but I have an error:
attempt to reference a deleted function
Member 14594285
27-Jul-23 4:27am
View
Impossible to do reference to function CArray.. I can't put m_arr in m_arr1
Member 14594285
26-Jul-23 8:59am
View
but where can be called function "UpdateEditControls();"?
Member 14594285
25-Jul-23 10:28am
View
Yes but the case WM_CTLCOLOREDIT in which function must be used?
Member 14594285
25-Jul-23 10:04am
View
Which event Must I use? Then Must I use a switch with case WM_CTLCOLOREDIT
Member 14594285
25-Jul-23 9:46am
View
I improved question, is it clear now?
Member 14594285
20-Jul-23 8:34am
View
#if !_HAS_CXX20
_NODISCARD_FRIEND bool operator==(nullptr_t, const exception_ptr& _Rhs) noexcept {
return !_Rhs;
}
Member 14594285
14-Jul-23 6:13am
View
thanks..it's very simple
Member 14594285
14-Jul-23 3:04am
View
I did it:
MSG MSGProiez; // Messaggio da girare al motore delle funzioni.
MSGProiez.hwnd = nullptr;
MSGProiez.message = WM_RBUTTONDOWN;
MSGProiez.pt.x = MSGProiez.pt.y = 0;
MSGProiez.wParam = 0;
MSGProiez.lParam = MAKELONG(0, 0);
MSGProiez.time = 0;
PreTranslateMessage(&MSGProiez);
but if I insert function inside a timer crashes, if I insert trhis inside a button works
Member 14594285
13-Jul-23 10:33am
View
I must use pretranslate message
Member 14594285
23-Jun-23 11:18am
View
yes, I allowed single selection only in my resource editor
Member 14594285
23-Jun-23 8:22am
View
If I use this row of code it doesn't solve
Member 14594285
8-Jun-23 9:17am
View
yes but in the dialog directly or must I open a window with metalanguage?
Member 14594285
8-Jun-23 8:47am
View
ok..so where must I change?
Member 14594285
8-Jun-23 5:07am
View
I did it but situation doesn't change..must I write something in the code?
Member 14594285
1-Jun-23 8:34am
View
software compile but I have this error after:
Unhandled exception thrown: read access violation.
this was 0x144.
Member 14594285
29-May-23 5:03am
View
I improved question
Member 14594285
29-May-23 4:36am
View
yes but I have a CDocument class and ON_WM_TIMER isn't recognized
Member 14594285
26-May-23 11:37am
View
I have an error inside the function SetTimer, elements are not recognized
Member 14594285
26-May-23 10:47am
View
I wrote:
m_nTimer = SetTimer(IDT_TIMER, 1000, NULL);
but I I have error in SetTimer
Member 14594285
25-May-23 5:52am
View
yes but in this way it's the same thing as before..and software crashes
Member 14594285
25-May-23 4:40am
View
thanks but I solved in this way:
if (pchTesto != NULL)
{
pchTesto = NULL;
delete pchTesto;
}
if (pchBuffOut != NULL)
{
pchBuffOut = NULL;
delete pchBuffOut;
}
Member 14594285
25-May-23 3:58am
View
yes but pchTesto and pchBuffOut is type BYTE not char
Member 14594285
25-May-23 3:42am
View
yes I think it's a problem of pointers, but I don't know how I can free memory
Member 14594285
24-May-23 6:13am
View
in place to (char*) pTesto?
Member 14594285
12-Apr-23 5:12am
View
yes but this is for a char..but if I must substitute a substring how must I write?
Member 14594285
5-Apr-23 11:51am
View
yes I solved, thanks, very kind
Member 14594285
5-Apr-23 11:21am
View
thanks
Member 14594285
5-Apr-23 10:44am
View
thanks, I wrote xml in this way now, but how Can I find field Barcode Data and Materiale?
Member 14594285
5-Apr-23 10:16am
View
I don't understand, I have always the same error
Member 14594285
5-Apr-23 10:13am
View
so:
XmlDocument xml = new XmlDocument();
xml.LoadXml(text); // suppose that myXmlString contains "<names>..."
XmlNodeList xnList = xml.SelectNodes("PrintDymo/Etichetta");
foreach (XmlNode xn in xnList)
{
string firstName = xn["Barcode"].InnerText;
string lastName = xn["Materiale"].InnerText;
}
Member 14594285
31-Mar-23 11:14am
View
thanks, very useful
Member 14594285
30-Mar-23 9:25am
View
I improved question
Member 14594285
30-Mar-23 9:19am
View
yes, but to pass the argument outside of the debugger and via the command-prompt how must I write in command prompt? I wrote like you said and my program must write argument in a text box and text box is empty...
Member 14594285
30-Mar-23 6:03am
View
so shouldn't I write argument in box of command line argument in project properties? Must I write it directly in command prompt?
Member 14594285
29-Mar-23 5:26am
View
I solved...in an other part of software was set to 0,100 so range didn't change
Member 14594285
28-Mar-23 12:14pm
View
if I write:
void CDlgEntryPoint::OnNMCustomdrawSlider1(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMCUSTOMDRAW pNMCD = reinterpret_cast<lpnmcustomdraw>(pNMHDR);
// TODO: Add your control notification handler code here
int value = m_slider.GetPos();
if (value == 120)
{
int uuu = 6;
}
*pResult = 0;
}
and I put a breakpoint I can see that there isn't position 120
Member 14594285
28-Mar-23 12:10pm
View
I want to say that maximum range doesn't change, it's always 100
Member 14594285
28-Mar-23 12:06pm
View
I did
Member 14594285
28-Mar-23 11:48am
View
I know but maximum range doesn't change
Member 14594285
28-Mar-23 11:33am
View
because I put a breakpoint when position is 100, and I saw that 100 is the maximum range
Member 14594285
28-Mar-23 11:32am
View
yes, it's the same thing
Member 14594285
28-Mar-23 10:57am
View
I use SetRange but I don't understand because range doesn't change, I put this function inside OnInitDialog
Member 14594285
28-Mar-23 10:17am
View
I saw that range is always 100 and not 1500
Member 14594285
24-Mar-23 12:55pm
View
yes but my problem is the drawn, beacuse is in pixel
Member 14594285
13-Mar-23 5:43am
View
I solved with a thread
Member 14594285
13-Mar-23 3:52am
View
but now my application is with ui because I used a windows form ui and now I have a dialog..so is there a way to use OpenFileDialog
Member 14594285
10-Mar-23 12:03pm
View
but I can't do this because in dialog.ShowDialog software blocks and gets into a loop
Member 14594285
10-Mar-23 11:41am
View
it's the same thing..in dialog.ShowDialog() software get into a loop
Member 14594285
10-Mar-23 10:59am
View
done
Member 14594285
9-Mar-23 11:57am
View
I solved..I found a guide in google
Member 14594285
9-Mar-23 9:42am
View
it works..but a question..can I add a dialog?
Member 14594285
9-Mar-23 9:14am
View
project works..a question..Can I use a dialog and not a console?
Member 14594285
9-Mar-23 9:03am
View
Deleted
I saw the second example but I can do a download directly? And I don't understand if code in c# is a library or a class
Member 14594285
9-Mar-23 8:57am
View
with visual studio 2015 doesn't open
Member 14594285
9-Mar-23 6:11am
View
I close all..error:
Severity Code Description Project File Line Suppression State
Error (active) cannot open metadata file "ClassLibrary1.dll" Project711 c:\Dev2015\Prg\Project711\Project711\Source.cpp 5
Severity Code Description Project File Line Suppression State
Error C1107 could not find assembly 'ClassLibrary1.dll': please specify the assembly search path using /AI or by setting the LIBPATH environment variable Project711 C:\Dev2015\Prg\Project711\Project711\Source.cpp 5
I added path of ClassLibrary.dll to command line but it's the same
Member 14594285
9-Mar-23 5:32am
View
yes there is, there is an other error:
Severity Code Description Project File Line Suppression State
Error Unable to copy file "obj\Debug\ClassLibrary1.dll" to "bin\Debug\ClassLibrary1.dll".
Member 14594285
8-Mar-23 8:44am
View
in visual studio 2022 I choose app mfc and the project works..thanks..I have some problem with visual studio 2015..I must choose clr in visual studio 2015? but there is only a console application
Member 14594285
8-Mar-23 4:04am
View
have you an email where I can send my screen? thanks
Member 14594285
8-Mar-23 3:20am
View
but an other question..if I use visual studio 2015 must I choose app mfc?
Member 14594285
8-Mar-23 3:18am
View
Ok, I solved it, thanks
Member 14594285
8-Mar-23 3:08am
View
I have created my app mfc, and then how can I add a library c#?
Member 14594285
8-Mar-23 3:07am
View
yes I have a screenshot..but Can I send here it?
Member 14594285
7-Mar-23 10:51am
View
a question..I use visual studio 2022..to create a project like yours I choose app mfc..but if I press in button build dependencies doesn't compare option project dependencies but personalization build..
Member 14594285
6-Mar-23 10:13am
View
Can I use it with visual studio 2015?
Member 14594285
6-Mar-23 8:50am
View
but it doesn't exist a package with this name..SkiaSharp.Views.Desktop isn't a package but a file
Member 14594285
6-Mar-23 8:46am
View
yes but I did it..I wrote in console :
Install-Package SkiaSharp.Views -Version 1.68.0 and package is installed from nu-get..
Member 14594285
6-Mar-23 8:40am
View
but it isn't a package, it's a file..
Member 14594285
6-Mar-23 8:36am
View
I wrote in console:
Install-Package SkiaSharp.Views -Version 1.68.0
and then I added to reference file SkiaSharp.Views.Desktop
Member 14594285
6-Mar-23 8:29am
View
but it's a file not a package..it's a file inside SkiaSharp.Views package
Member 14594285
6-Mar-23 8:26am
View
I wrote to SkiaSharp now..anyway..I installed package from visual studio console and when I launch software the error is:
SkiaSharp.Views.Desktop not found
Member 14594285
6-Mar-23 6:26am
View
but I don't understand because package is installed but when I launch program sotware says file not found
Member 14594285
6-Mar-23 6:23am
View
thanks
Member 14594285
6-Mar-23 6:16am
View
I saw that is .NET Framework 4.7.1
Member 14594285
6-Mar-23 6:14am
View
I use visual studio 2022
Member 14594285
6-Mar-23 6:13am
View
I opened properties of project..but where must I see?
Member 14594285
6-Mar-23 6:01am
View
a ok thanks...so if I installed NetStardard library is enough?
Member 14594285
6-Mar-23 5:50am
View
Are you sure? In an other software I have NETStandard.Library.NETFramework package
Member 14594285
6-Mar-23 5:21am
View
where must I check? I installed package yet..but when I launch software it says: file or assembly not found
Member 14594285
6-Mar-23 5:11am
View
I installed the package but I don't understand because when I launch software it says: file or assembly not found
Member 14594285
6-Mar-23 2:43am
View
Deleted
it's the same thing..installation of package isn't possible..I have a package in y desktop, can I install it fom y desktop?
Member 14594285
1-Mar-23 4:33am
View
thanks but it doesn't print...
public void PrintLabelAction()
{
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Filter = "DYMO files |*.label;*.dymo|All files|*.*";
if (openFileDialog.ShowDialog() == true)
{
var FileName = openFileDialog.FileName;
// DymoSDK.App.Init();
//Load label from file path
dymoSDKLabel.LoadLabelFromFilePath(FileName);
//Get image preview of the label
dymoSDKLabel.GetPreviewLabel();
//Load image preview in the control
var ImageSourcePreview = LoadImage(dymoSDKLabel.Preview);
//Get object names list
var LabelObjects = dymoSDKLabel.GetLabelObjects().ToList();
}
int copies = 1;
// var SelectedPrinter = DymoPrinter.Instance.GetPrinters();
//DymoPrinter SelectedPrinter;
var SelectedPrinter = DymoPrinter.Instance.GetPrinters();
var name = SelectedPrinter.ToString();
if (SelectedPrinter != null)
{
System.String SelectedRoll = "";
if (name.Contains("Twin Turbo"))
{
//var TwinTurboRolls = new List<string>() { "Auto", "Left", "Right" };
int rollSel = SelectedRoll == "Auto" ? 0 : SelectedRoll == "Left" ? 1 : 2; //DA MODIFICARE
DymoPrinter.Instance.PrintLabel(dymoSDKLabel, name, copies, rollSelected: rollSel);
}
else
DymoPrinter.Instance.PrintLabel(dymoSDKLabel, name, copies);
//If the label contains counter objects
//Update counter object and preview to show the incresead value of the counter
var LabelObjects = dymoSDKLabel.GetLabelObjects().ToList();
var counterObjs = LabelObjects.Where(w => w.Type == DymoSDK.Interfaces.TypeObject.CounterObject).ToList();
// if (counterObjs.Count > 0)
{
foreach (var obj in counterObjs)
dymoSDKLabel.UpdateLabelObject(obj, copies.ToString());
UpdatePreviewAction();
}
}
}
Member 14594285
28-Feb-23 10:32am
View
I used this software but when I press button "Print Label" it doesn't work
Member 14594285
27-Feb-23 8:20am
View
ok thanks very much...it's very very useful
Member 14594285
27-Feb-23 4:23am
View
it's very useful but when I compile program and I press the button 'Add' I have an error:
System.IO.FileNotFoundException: 'Could not load file or assembly 'CSharpClass, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The specified file could not be found.'
Member 14594285
27-Feb-23 4:17am
View
Deleted
it's very useful but I have 4 errors..
1) Severity Code Description Project File Row Status of deletion
Error (active) E1696 cannot open MFCwithCSharp metadata file 'CSharpClass.dll' error code C:\Users\V\Desktop\new\using_csharp_lib_in_cpp-main\MFCwithCSharp\MFCwithCSharp\MFCwithCSharpDlg.cpp 11
2)Severity Code Description Project File Row Status of deletion
Error (active) E2998 PCH warning: An unknown error has occurred. No IntelliSense PCH file was generated. MFCwithCSharp C:\Users\V\Desktop\new\using_csharp_lib_in_cpp-main\MFCwithCSharp\MFCwithCSharp\MFCwithCSharpDlg.cpp 1
3)Severity Code Description Project File Row Status of deletion
Warning MSB3274 Primary reference 'C:\Users\V\Desktop\new\using_csharp_lib_in_cpp-main\MFCwithCSharp\CSharpClass\bin\Debug\CSharpClass.dll' could not be resolved because it was compiled with framework '.NETFramework ,Version=v4.8". This version is later than the current target framework ".NETFramework,Version=4.7.1". MFCwithCSharp C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 2352
4)Severity Code Description Project File Row Status of deletion
Error C1107 Could not find assembly 'CSharpClass.dll': Specify the search path of the assembly using /AI or by setting the LIBPATH environment variable MFCwithCSharp C:\Users\V\Desktop\new\using_csharp_lib_in_cpp-main\ MFCwithCSharp\MFCwithCSharp\MFCwithCSharpDlg.cpp 11
Member 14594285
24-Feb-23 6:10am
View
Do you have an easy example that Can I see?
Member 14594285
24-Feb-23 5:56am
View
thanks, I followed this procedure and I created a new class and I called it "Prova"..but I don't know what means access your c# class from her...in my class "Prova" Can I write in c#
Member 14594285
24-Feb-23 5:18am
View
yes I read but it's the opposite...it's c# that calls c++..I need c++ that calls c#
Member 14594285
23-Feb-23 10:25am
View
yes but I have an other problem I don't find cli in my visual studio 2015..Must I reinstall it?
Member 14594285
23-Feb-23 8:56am
View
this example is the opposite...c# that calls c++ libraries, but I need c++ that calls c# libraries..thanks
Member 14594285
23-Feb-23 5:53am
View
What does it mean?
Member 14594285
22-Feb-23 11:13am
View
do you have a simple example that I can see? Thanks..if it's with CLR is good.
Member 14594285
22-Feb-23 10:50am
View
ok, I'm using a c# library to print with dymo printer, this library must be used in a c++ software, i must do this..Have you have an example of c# library in c++ app?
Member 14594285
22-Feb-23 4:10am
View
sorry, it's the opposite..c# library for c++..sorry
Member 14594285
21-Feb-23 11:06am
View
yes, I must use a c++ library in c# app
Member 14594285
21-Feb-23 11:06am
View
what does it mean?
Member 14594285
13-Feb-23 3:01am
View
Yes but I don't find a sdk zebra for labels or in c++
Member 14594285
9-Feb-23 5:33am
View
I added name..I tried this method on the link but items are added out of comboBox and not Inside
Member 14594285
9-Feb-23 4:44am
View
yes I saw, but with this I can modify source code and not generated code
Member 14594285
9-Feb-23 4:28am
View
ok thanks, I solved but if I write:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
//ComboBox1.
ComboBox1.Items.Add("230");
ComboBox1.Items.Add("231");
}
items don't compare in comboBox
Member 14594285
9-Feb-23 4:06am
View
I added name with properties window and I wrote:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
//ComboBox1.
ComboBox1.Items.Add(230);
ComboBox1.Items.Add(231);
ComboBox1.Items.Add(232);
ComboBox1.Items.Add(233);
ComboBox1.Items.Add(234);
}
but items don't add
Member 14594285
9-Feb-23 3:33am
View
Deleted
I put source code but I don't find comboBox name and I don't know how I can add it;
Member 14594285
8-Feb-23 12:27pm
View
If I click with right button compares a dialog with Cut, Copy, View Source, View code..there isn't Property window
Member 14594285
8-Feb-23 8:40am
View
SelectedPrinter is a variable not initialized and also SelectedLabelObject
Member 14594285
8-Feb-23 5:37am
View
I solved that error but now I have problems with variables
Member 14594285
8-Feb-23 5:36am
View
I solved that error, but I have problems with variables;
Member 14594285
7-Feb-23 11:57am
View
I solved adding manually library Dymo.dll, but I have n error with a library that I don't know and there isn't in google: Microsoft.Office.Interop.InfoPath.SemiTrust
Member 14594285
7-Feb-23 11:32am
View
ok thanks
Member 14594285
7-Feb-23 11:29am
View
I did it just:
I did:
Tools -> NuGet Package Manager -> Package Manager Console. In the console window that shows up, type "Install-Package DYMO.Connect.SDK". and it says: Package is just installed
Member 14594285
7-Feb-23 11:27am
View
I improved my question, where it's written DYMO there is an error
Member 14594285
7-Feb-23 11:23am
View
yes I run and the package is just installed
Member 14594285
7-Feb-23 11:14am
View
I have application in c# to print labels that I found in gitHub but Dymo.sdk isn't found..I have this error:
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'DymoSDK' could not be found (are you missing a using directive or an assembly reference?) WPFSDKSample C:\Users\VDS\Desktop\cartella\DCD-SDK-Sample-master\WPF\WPFSDKSample\ViewModels\MainViewModel.cs 1 Active
Member 14594285
7-Feb-23 10:58am
View
yes but I have problems with Dymo.sdk, I installed DYMO.Connect.SDK.1.4.3.37
Member 14594285
7-Feb-23 10:56am
View
and error is:
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'DymoSDK' could not be found (are you missing a using directive or an assembly reference?) WPFSDKSample C:\Users\VDS\Desktop\cartella\DCD-SDK-Sample-master\WPF\WPFSDKSample\ViewModels\MainViewModel.cs 1 Active
Member 14594285
7-Feb-23 10:55am
View
Yes I did it, and the output is:
PM> Install-Package DYMO.Connect.SDK
Package 'DYMO.Connect.SDK.1.4.3.37' already exists in project 'WPFSDKSample'
PM>
Member 14594285
7-Feb-23 9:12am
View
Can I use WPF libraries?
Member 14594285
7-Feb-23 9:10am
View
I tried to follow this link:
DYMO Label Framework .NET Reference documentation
but page not found..
Member 14594285
7-Feb-23 9:08am
View
ok thanks, I don't know c# and I try to learn..I used always c++ but with this printer I must use c#..so I must download VB.NET libray
Member 14594285
7-Feb-23 9:01am
View
Yes but I don't find libraries in c#...there is jave and visual basic
Member 14594285
7-Feb-23 9:00am
View
I follow this link but there is java and visual basic, in c# I don't find libraries
Member 14594285
7-Feb-23 8:57am
View
I want to delete a question but there is only improve button, I wanted to add code
Member 14594285
7-Feb-23 8:56am
View
I tried to remove the last question, because this question is about a code and not a generic question like the last... it's better to ignore the question than waste time insulting in my opinion..
Member 14594285
7-Feb-23 4:00am
View
yes, I saw..but they use software to print labels, but I need a code to print in my software, I use c#..I created a code with c++ but I need help to write in c#..thanks
Member 14594285
2-Dec-22 11:42am
View
thanks I solved
Member 14594285
29-Nov-22 10:16am
View
I've seen this class but my methos if is correct is faster
Member 14594285
29-Nov-22 10:13am
View
yes CListCtrl
Member 14594285
12-Oct-22 11:52am
View
thanks for idea
Member 14594285
29-Sep-22 11:03am
View
thanks
Member 14594285
27-Sep-22 8:34am
View
I tried a derived class: https://www.codeproject.com/Articles/717/A-Gradient-Title-Bar-for-modal-and-modeless-dialog...but all the title bar is drawn and not only changed color and my menu is hidden
Member 14594285
27-Sep-22 8:32am
View
I tried a derived class: a gradient title bar for a model and modeless dialog
Member 14594285
27-Sep-22 3:23am
View
I addeed this code:
HRESULT CDlgMine::DisableNCRendering(HWND hWnd)
{
HRESULT hr = S_OK;
DWMNCRENDERINGPOLICY ncrp = DWMNCRP_DISABLED;
// Disable non-client area rendering on the window.
hr = ::DwmSetWindowAttribute(hWnd,
DWMWA_NCRENDERING_POLICY,
&ncrp,
sizeof(ncrp));
if (SUCCEEDED(hr))
{
// ...
}
return hr;
}
but application doesn't compile
Member 14594285
27-Sep-22 2:54am
View
I read this but it isn't very clear..I don't know what function to use if I can't use SetSysColors...
Member 14594285
26-Sep-22 11:45am
View
aaa ok, thanks..so if I want this effect I must use buttons..a question..Can I make a derived class of CMenu? Because when I press add mfc class on my application and search CMenu in baseClass I don't find it
Member 14594285
26-Sep-22 11:36am
View
Yes I use OnNcPaint, but inside the function I use SetSysColors..so I don't know which function I can use
Member 14594285
26-Sep-22 10:45am
View
I have a CMenu with horizontal written, if I press on a horizontal written, submenu compares and I can add event handler..but if I want to add event handler directly on horizontal written?
Member 14594285
26-Sep-22 8:40am
View
I don't understand beacuse sometimes when application starts title bar is blue and sometimes when application starts is white..
my code:
void CDlgEstimateTime::OnNcPaint()
{
int aElements[2] = { COLOR_WINDOW, COLOR_WINDOWTEXT };
DWORD aOldColors[2];
DWORD aNewColors[2];
aNewColors[0] = RGB(255, 255, 255); // light gray
aNewColors[1] = RGB(0, 0, 255); // dark purple
int flag = COLOR_HOTLIGHT;
SetSysColors(2, aElements, aNewColors);
}
Member 14594285
26-Sep-22 5:10am
View
I read documentation, I used:
void CDlgEstimateTime::OnNcPaint()
{
int aElements[2] = { COLOR_WINDOW, COLOR_HOTLIGHT };
DWORD aOldColors[2];
DWORD aNewColors[2];
aNewColors[0] = RGB(255, 255, 255); // light gray
aNewColors[1] = RGB(255, 0, 0); // dark purple
//COLORREF NewColor = RGB(255, 255, 0);
int flag = COLOR_HOTLIGHT;
SetSysColors(2, aElements, aNewColors);
}
but title bar is white and withouut title
Member 14594285
23-Sep-22 2:52am
View
I tried this code but now I have google with background gray and the title bar of my MFC application is white..I don't know
Member 14594285
22-Sep-22 11:45am
View
which value
Member 14594285
22-Sep-22 11:34am
View
I improved my question
Member 14594285
22-Sep-22 9:41am
View
I know, in fact I tried whith black but it's the same thing...but is it right the function SetSysColors? How must I use it?
Member 14594285
19-Sep-22 10:00am
View
I solved in this way:
MoveWindow(0, 0, 0, 0);
Member 14594285
19-Sep-22 9:53am
View
I had an idea, Can I change dimension of dialog and put these to zero?
Member 14594285
19-Sep-22 9:07am
View
I don't want to hide always dialog but only in a case..so if I can't use ShowWindow(SW_HIDE) in OnInitDialog when can I use it?
Member 14594285
19-Sep-22 8:20am
View
done
Member 14594285
19-Sep-22 6:13am
View
in CDlgMy:
BOOL CDlgFormati::OnInitDialog()
{
CDialog::OnInitDialog();
FillList();
return TRUE;
}
in FillList there is ShowWindow(SW_HIDE);
Member 14594285
19-Sep-22 4:47am
View
I improved my question
Member 14594285
16-Sep-22 11:14am
View
My code:
if (n_contatore == 0)
{
AfxMessageBox(IDS_STRING330, MB_ICONERROR);
//DestroyWindow();
ShowWindow(SW_MINIMIZE);
ShowWindow(SW_HIDE);
m_bFormati = false;
return;
}
but window isn't hidden but first it's minimized and then It is shown
Member 14594285
16-Sep-22 11:01am
View
I used ShowWindow(SW_HIDE) but it doesn't work..if I use ShowWindow(SW_MINIMIZE) works, namely window minimizes but I want the window is hidden completely
Member 14594285
2-Sep-22 10:53am
View
what Randor says it's correct, if I comment the function ManageTime messageBox opens..how Can I do? because this function can't be commented
Member 14594285
2-Sep-22 10:00am
View
yes if I comment ManageTime messageBox opens, but how Can I do? I need this function, I can't comment it, what it depends on?
Member 14594285
2-Sep-22 9:40am
View
Sorry, now I explain...I mistook, pieChart design block messageBox...I don't know why...in my dialog there is a button that shows piechart and then there is a second button that I press to open messageBox..but if there is piechart design messagebox are blocked if I press the second button...If there isn't piechart design messagebox is shown when I press second button
Member 14594285
2-Sep-22 9:32am
View
In my dialog there is a button where piechart is shown and then in my dialog there is a button that I press to open an other dialog
Member 14594285
2-Sep-22 5:09am
View
I posted part of PieChartWnd code
Member 14594285
2-Sep-22 4:57am
View
I use PieChartWnd class that blocks the opening of other windows..I don't have an other way to explain..
Member 14594285
3-Aug-22 3:28am
View
My result is d_tempo = 0.0000 and not 0.0057
Member 14594285
18-Jul-22 3:56am
View
to simplify Can I remove directly the row with title?
Member 14594285
15-Jul-22 9:56am
View
I improved my question
Member 14594285
15-Jul-22 6:26am
View
I chenged my question now, I added code.
Member 14594285
14-Jul-22 10:46am
View
I don't know this class, I would like a scroll in my dialog
Member 14594285
14-Jul-22 10:40am
View
In dialog I put true in left scrollbar, only this
Member 14594285
28-Jun-22 8:22am
View
I use a PieChart class, to draw in my dialog..if I add in InitInstance this code:
Gdiplus::GdiplusStartupInput gdiplusStartupInput;
Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
the second dialog that must open when I press button on my dialog doesn't open.
Member 14594285
10-Mar-22 11:55am
View
Yes but is there an event that records when I press button to minimize in mfc?
Member 14594285
10-Mar-22 11:44am
View
With event I can make dialog visible or not visible
Member 14594285
10-Mar-22 11:23am
View
Is there an event that records if I press button to minimize? so I can use SetVisible
Member 14594285
10-Mar-22 10:14am
View
If I wanto to minimize my software I must minimize dialog, so I can't solve it?
Member 14594285
10-Mar-22 9:59am
View
I solved my problem with function OnSize
Member 14594285
10-Mar-22 9:52am
View
I try to explain my problem:
I have a modal dialog and then with a button I open a CDialog, if I try to minimize the second dialog it doesn't minimize...
Member 14594285
9-Mar-22 11:57am
View
there is OnInitDialog but it intervenes only in the start and not always when dialog opens
Member 14594285
8-Mar-22 11:19am
View
yes, you told me that it isn't pssible
Member 14594285
8-Mar-22 11:11am
View
I wanto to minimize my dialog
Member 14594285
8-Mar-22 8:25am
View
so I can't solve this problem? is there an other option?
Member 14594285
28-Feb-22 8:46am
View
Thanks, it works
Member 14594285
28-Feb-22 2:54am
View
yes, it works, Can I change also color of my written?
Member 14594285
24-Feb-22 11:33am
View
I tried but in this way treeView isn't drawn, I have the problem that I must write on treView and I want item rectangle transparent
Member 14594285
23-Feb-22 12:09pm
View
Can I use CustomDraw to solve this?
Member 14594285
23-Feb-22 9:02am
View
I want item in my treeView with multiline:
example:
Node: ciao //line1
ciao //line2
Node1 : cccc//line1
cccc1//line2
Is It Clear?
Member 14594285
31-Jan-22 9:48am
View
I solved, when I used InsertItem hItem = m_treeCtrl.InsertItem( _T("ciao"), 0 ,i, TVI_ROOT); I used i for selectImage and value is 1, so when I clicked image changed, i must be 0
Member 14594285
28-Jan-22 11:21am
View
Ok thanks
Member 14594285
28-Jan-22 11:08am
View
but Add has like second member COLORREF..so if I use RGB i think it's right...I don't know..
Member 14594285
28-Jan-22 10:57am
View
so how I can try to write? thanks
Member 14594285
28-Jan-22 10:41am
View
hItem = m_treeCtrl.InsertItem( _T("ciao"), 0 ,i, TVI_ROOT);
i=0;
Member 14594285
28-Jan-22 10:11am
View
I have a bitmat with 2 images, item has like icon the first image of bitmat, when I click on item second image appears, and the first image disappears, so item chenges his icon, is it clear?
Member 14594285
25-Jan-22 12:11pm
View
image is 8 bit and dimension 225 x 225
Member 14594285
20-Jan-22 4:32am
View
ok thanks
Member 14594285
20-Jan-22 4:05am
View
Or is there an other way to see version of my "MySql Unicode Driver ODBC"?
Can I search for in my pc with path?
Member 14594285
20-Jan-22 3:11am
View
TCHAR szBuf[2001];
WORD cbBufMax = 2000;
WORD cbBufOut;
TCHAR *pszBuf = szBuf;
/*LPSTR lpszBuf,
WORD cbBufMax,
WORD * pcbBufOut);
if (SQLGetInstalledDrivers(szBuf, cbBufMax, &cbBufOut))
{
int i = 1;
}
but I have this error: Severity Code Description Project File Line Column Suppression State
Error LNK2019 unresolved external symbol _SQLGetInstalledDriversW@12 referenced in function "protected: virtual int __thiscall CCReadLogDlg::OnInitDialog(void)" (?OnInitDialog@CCReadLogDlg@@MAEHXZ) CReadLog C:\Dev2015\Prg\CReadLog\CReadLogDlg.obj 1 1
Member 14594285
18-Jan-22 12:07pm
View
I saw in internet that I can use
SQLGetInstalledDriversW ( LPWSTR lpszBuf,
WORD cbBufMax,
WORD * pcbBufOut
)
but I don't understand how use this function
Member 14594285
18-Jan-22 12:06pm
View
yes But I don't know how I must inizialized lpszBuf, cbBufMax and pcbBufOut
Member 14594285
18-Jan-22 12:04pm
View
yes driver ODBC
Show More