|
I have a specific problem relating to GUI. i have designed a skin based dialog application. it works fine on normal desktop appearance settings. But on my boss computer he did some specific appearance settings now if he starts the application the buttons on the look bad they are displaced here and there. the button do not adjust automatically. So please someone GUI guru can tell me which thing i am missing. do i need to handle some specific message to reset the position of the buttons.
any response will be appreciated.
Omar Lodhi
|
|
|
|
|
You probably mean that he choose another screen resolution, so that your controls on your GUI are not properly positioned ?
If that's the case, you'll need to reposition your controls (depending on the resolution) at startup. But there are also some classes on this website that manage that automatically.
|
|
|
|
|
thanks for early reply,
this is happening only on one PC. on all other pc's if we change the resolution application has no problem. there is some appearance settings changed on that particular pc that has the problem but the other skinned application from other vendors work fine. my question is why not windows readjusts the controls on the dialog. All the controls are owner draws. how can i readjust the controls to the position that they were put on the design time.
omar lodhi
|
|
|
|
|
Hi,
I have a win32 based C++ application
It needs to read Khmer language text from xml file and display it in one of the columns in a list control.
The text would be Khmer alone or a string having both English and Khmer.
I can notice that Office applications display text in Khmer script correctly. We want to do the same in our application too.
Right now it shows Khmer script as boxes.
Is there a solution for this?
If anybody has any possible solution for this problem, please guide us in this regard.
Shweta Shrivastava
-- modified at 4:39 Friday 3rd November, 2006
|
|
|
|
|
Just a thought but does your application support Unicode characters? I think, to display those languages your application should support Unicode.
---
Hakuna-Matada
It means no worries for the rest of your days...
It's our problem free, Philosophy
It’s rather simple to write an unmanaged C++ application that crashes when it performs a callback. It’s impossible to write a managed application that does the same, thanks to delegates. - Jeff Prosise
|
|
|
|
|
Yes it does supprt Unicode characters ,infact by applications displays all languages except Khmer , I downloaded Khmer Font from Net but there is a constraint I cannot change all the Fonts to Khmer because there will be UI change and its not acceptable
Thanks
Shweta
|
|
|
|
|
When you see boxes, it means the font you're using doesn't contain the characters you're trying to display.
|
|
|
|
|
I have a project that is a note book (i.e. tab-- TabCtrl and and Pages). These tabpages are default with MS Visual Studio C++6. For the sake of the argument, I called them page1, 2, 3, and 4. Page1 will have a button that notifies other pages (2-4) to take some action. The message map is WM_CHANGESOMETHING.
Page1 code (sender):
void Page1::OnButtonClick(){
SendMessage(WM_FLIGHTCHANGE);
}
Page2' header file(recipient):
//{{AFX_MSG(CTabSheet2)
virtual BOOL OnInitDialog();
afx_msg LRESULT OnFlightChange(WPARAM wParam, LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
Page2'Body Message Mapping:
BEGIN_MESSAGE_MAP(CTabSheet2, CDialog)
//{{AFX_MSG_MAP(CTabSheet2)
ON_WM_SHOWWINDOW()
ON_MESSAGE(WM_FLIGHTCHANGE, OnFlightChange)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
Page2'Body Implementation:
LRESULT CTabSheet2::OnFlightChange(wParam, lParam)
{
int a;
return (LRESULT)0;
}
Problem, when compile and link, I get the error message listed below.
fatal error C1010: unexpected end of file while looking for precompiled header directive
Any one know what the problem is?
Thanks
Bill
|
|
|
|
|
jocblack wrote: fatal error C1010: unexpected end of file while looking for precompiled header directive
Where is your #include "stdafx.h" directive.
|
|
|
|
|
in the header file that I didn't list here.
|
|
|
|
|
jocblack wrote: Page1 will have a button that notifies other pages (2-4) to take some action.
Why aren't you using QuerySiblings() for this?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
QuerySibling is unavailable because I didn't setup the property sheet, I used property control default that came with MFC.
Dave, have you used the "ON_MESSAGE" before and did you have any luck with it.
Thanks
Bill
|
|
|
|
|
jocblack wrote: ...I didn't setup the property sheet...
Which means what exactly?
jocblack wrote: I used property control default...
What is this?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I want to simultate that the user typed some text in a single line CEdit control
(in another application) and then pressed the Enter key. The problem is I want it done without the control having keyboard focus.
I found the control's handle, I tried sending the WM_SETTEXT message with the text and it works, regardless of the keyboard focus, But when I tried sending the WM_KEYDOWN or WM_CHAR message with the VK_ENTER key it only works if the control has keyboard focus.
Does anyone know how to solve this problem?
Thx
|
|
|
|
|
I may be totally misunderstanding your question but if the WM_SETTEXT gives you the desired functionality, to make it look like some one is typing could you not just call WM_SETTEXT multiple times...for example to 'type' Hello could you not do
WM_SETTEXT 'H'
WM_SETTEXT 'He'
WM_SETTEXT 'Hel'
WM_SETTEXT 'Hell'
WM_SETTEXT 'Hello'
cje
|
|
|
|
|
Is there any api with which we can show a folder selecting dialog
(like CFileDialog)?
Thanks for any help.
KIRAN PINJARLA
|
|
|
|
|
Hi,
check LPITEMIDLIST SHBrowseForFolder( LPBROWSEINFO lpbi );
-----------
Mila
|
|
|
|
|
kiran.pinjarla wrote: Is there any api with which we can show a folder selecting dialog
(like CFileDialog)?
Hope this[^] helps.
|
|
|
|
|
Thank you both of u.
Thank you so much.
KIRAN PINJARLA
|
|
|
|
|
hi
i need to found out the free spaces there in ausb disk?is there any MFC function or API for that....
thanx in advance
birajendu
CyberG India
Delhi
India
|
|
|
|
|
Hi,
BOOL GetDiskFreeSpaceEx(
LPCTSTR lpDirectoryName,
PULARGE_INTEGER lpFreeBytesAvailable,
PULARGE_INTEGER lpTotalNumberOfBytes,
PULARGE_INTEGER lpTotalNumberOfFreeBytes
);
-----------
Mila
|
|
|
|
|
thanx a lot....
birajendu
CyberG India
Delhi
India
|
|
|
|
|
|
Hi
i am working on BackUp module can anybody help me out on it?
i want backup fundamental policy and simple application
Thanks & Regards
rakesh baldha
|
|
|
|
|
Hi,
I want to run a new instance of EXCEL.EXE from my code (if there is already one running) in VC++ .
I am using Visual Studio 7.0 ..and then i need to attach my process to that new instance of EXCEL.EXE..
please help
Regards,
Prashant
|
|
|
|