Search:
Type: Posts; User: Dang.D.Khanh
Search:
Search took 0.08 seconds.
-
July 28th, 2021, 07:34 PM
Hi,
During using owndraw with has string property, my combobox cannot expand.
How can I fix this?
Thanks you!
-
July 26th, 2021, 11:46 AM
Hi Sir,
You can see I'm getting ideas from that post.
The usage function are all there.
CreateFont
GetTextExtentPoint32
DrawText
I have used CFont instead of HFONT because result has not...
-
July 26th, 2021, 09:14 AM
Thanks sir, I will keep it in mind. :(
-
July 26th, 2021, 08:04 AM
Hi Sir,
I want to calculate the width of a string, the above code is what I have from this post.
From h=11point I switch to 14.5pixel and calculate the width like the code, the problem is...
-
July 25th, 2021, 07:37 PM
Hi,
I'm using the font Calibri,
I need to calculated fontwidth of CString L"testtextwidth" from the fontsize 14.5 and 16
I used the Createfont function as follows:
//initialize
HDC hDC...
-
July 25th, 2021, 07:28 PM
Hi Sirs,
this code: hr = pDisp->GetIDsOfNames return S_OK,
I checked but there is no more information to see in IDispatch, debugging is quite difficult.
So maybe I should go back to MFC, I'll try...
-
July 24th, 2021, 04:48 PM
Hi,
I'm having trouble locating the worksheet name ,
My code uses as following:
IDispatch* xlSheet; //<--get xlSheet ok
VARIANT result4;
VariantInit(&result4);
...
-
July 20th, 2021, 07:38 PM
Thanks sir, I think it is a solution that works in most cases.
my problem is solved .
-
July 20th, 2021, 07:36 PM
Thanks sir, I got it.
so i will remove this function in my code.
-
July 20th, 2021, 08:12 AM
Hi Sir, I have updated the post.
by Moving the focus through apps make titlebar's form flickering.
Can I disable this?
-
July 20th, 2021, 05:33 AM
Hi,
In the the my code,from MFC form, I call the ::Setfocus(hwnd) function to focus another windows application only once.
then i setfocus back to my MFC form.
my code like this:
HWND...
-
July 20th, 2021, 05:07 AM
I'm using the code from this post,
From old posts I see it's name is CreateDispatch but when I use it I see only name CreateInstance.
I'm trying this answer, it might help me
-
July 20th, 2021, 04:50 AM
Hi Sir,
I'm using CreateInstance function from automate.
I'm still investigating it. for the time being, I will monitor taskmanager and end this task manually if I get this case.
-
July 19th, 2021, 01:55 PM
Thanks Sir,
I'm trying your suggestion.
-
July 19th, 2021, 04:33 AM
Hi,
I'm doing an action in first debug like this:
1, Create excel instance.
2, During debugging, turn it off suddenly.
In some case, this processes still run in background,
so when i use...
-
July 18th, 2021, 06:05 AM
Hi,
I'm missing the pixel factor. problem solved
-
July 18th, 2021, 03:47 AM
I have searched and used some formula: ClientToScreen,.. to find CPoint.
My result:
CPoint cp1 ;x-y (314;448)
CPoint cp2 ;x-y (802;448)
from this, Can I draw the CPoint on the screen to...
-
July 17th, 2021, 11:01 AM
Hi Sir,
my problem is probably by 2 projects setting different (maybe the wizard changed it without me knowing).
after matching MD and MDd now it works as i expected !.
-
July 17th, 2021, 05:05 AM
Hi Sir,
I'm not sure but the class myclass is declared and implemented in another library .dll with dllexport,
If I use this class in the same calling project the code runs fine.
Can I use it as...
-
July 17th, 2021, 04:34 AM
Thanks sirs.
I'll check it again.
-
July 17th, 2021, 04:31 AM
Hi,
I'm using vs2019 -vs16.10
Tried declaring 2D vector bounds but still can't pass function
//setbound vector 12x3
vector<vector<properties>> vr{rows, vector<properties>(cols) }; //properites...
-
July 17th, 2021, 04:25 AM
Hi Sir,
This vector will be 12x3(rows/columns) after emplaceback .
35994
When I debug, this param always initializes a lot of elements like the following image.
35995
35996
-
July 17th, 2021, 01:02 AM
Hi,
When I debug myfunction, the vector is automatically initialized like this image
Is this a problem?
35990
-
July 16th, 2021, 06:40 PM
Hi,
This problem took me a long time to fix but it didn't work ..
I have a functions like this:
struct ST1 //define global outsize class;
{
///...int,bool,..
CString abc = L"";
...
-
July 16th, 2021, 04:59 AM
Hi Sirs,
I mistyped "," by "." but it doesn't work because of this error.
35986
but when Changing the type to avoid duplicate or using struct both works fine for me now.
Thanks for...
|
Click Here to Expand Forum to Full Width
|