|
|
Hi RockyJames,
SetBorders
|
|
|
|
|
|
I want to increase height of the Status bar...?
Bec i want to Load Bitmap in to the one of the Pane..
-- modified at 6:56 Tuesday 4th April, 2006
|
|
|
|
|
for increase m_wndStatusBar.SetBorders(4, 7, 4, 7);
|
|
|
|
|
I have use setborders function m_wndStatusBar.SetBorders(4,7,4,7);But it the status bar is not displayed properly.
-- modified at 7:34 Tuesday 4th April, 2006
|
|
|
|
|
Hi All,
I need help regarding validating a string. This string is in unicode i.e it supports multiple languages.
I need an API which checks if a charater/string is supported by the current font or not.
Detail:
I need to show all the charaters supported for the selected font(from a combobox) in a grid layout. Then when user selects a particular grid, the string should get updated in a rich edit text control. Currenly I can see blank gyphs for characters which are not supported by the selected font. And same appear in the richtext control.
My requirement is to: Not to show the string in the grid control if it is blank.
Solutions tried till now:
I tried GetCharacterPlacement, MultiByteToWideChar, IsTextUnicode and GetGlyphIndices(does not work on XP).
But nothing useful.
Has anyone come across a situation like this.
Please help me. Am stuck badly.
Thanks,
Arti Gujare
|
|
|
|
|
how to check if a charater has a blank glyph for the selcted font.
I am working on windowsXP. GetGlyphIndices was the perfect API but it does not work for XP.
Can anyone please helpe me.
Arti Gujare
|
|
|
|
|
I want to draw a virtual window when dragging dialog frame to change its size,and draw all controls and dialog
when releasing left mouse button. How to implement?
|
|
|
|
|
use CRectTracker to track down the movement and then when you use the L button up, you have the new rectangle (held by CRectTracker) to place your dialog within.
hope this helps ya
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Hey
When I run my prog the size visible in the task manager goes up by about 5mb each second. I have searched for information about memory leaks but most is about remembering to delete memory set with new, malloc , etc.
My prog only uses STL and a couple of pointers to arrays... how can I see which lines of my code are causing the problem??
cheers
|
|
|
|
|
|
If it's an MFC program, then starting the debugger will show you in the output window the memory leaks when you close your program.
|
|
|
|
|
|
|
If you are using STL it might be possible that you are passing these STL arrays in a function as a paramter or returning from a function. Check out if you are using a normal copy or reference copy.
This might shoot up the memory used though not using new/malloc.
Arti Gujare
|
|
|
|
|
I am passing stl vectors and returning them. Some of the fuctions have reference parameters.
So basically at the end of each function I need to call vec.~vector() ??
cheers and thank you
|
|
|
|
|
program might consume more memory if you pass the array this way
<br />
void foo(vector<int> vArray)<br />
{<br />
}<br />
<br />
try doing<br />
void foo(const vector<int> &vArray)<br />
{<br />
}<br />
<br />
or<br />
void foo(vector<int> &vArray)<br />
{<br />
}<br />
Arti Gujare
|
|
|
|
|
|
it consumes more memory, but it doesn't leak the memory...
|
|
|
|
|
Please see the initial question posted
""When I run my prog the size visible in the task manager goes up by about 5mb each second. ""
This can happen without memory leaks too. using STL
Hence the guess.
Did it help?
Arti Gujare
|
|
|
|
|
i had read && understood his question.
what he desscribes looks really like a memory leak because if it was a huge allocation, it would happen depending on what he does thru the application, and it would certainly allocate a big memory block once, and stop then.
what you answered is not a solution to fix memory leaks, even using STL AFAIK.
it's much a good habit to use when dealing with big objects as function parameters (and not only STL containers).
and it's not because he changes his functions signatures by using references that his memory won't increase that fast... (maybe less each second at least, but that's all).
|
|
|
|
|
Hi,
how can I enable an right mouse click eventhandler for a CStatic icon control?
THX
|
|
|
|
|
MyDialog.h
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
MyDialog.cpp
BEGIN_MESSAGE_MAP(CMyDialog, CDialog)
ON_WM_CONTEXTMENU()
END_MESSAGE_MAP()
void CMyDialog::OnContextMenu(CWnd* pWnd, CPoint point)
{
// TODO: Add your message handler code here
CMenu menu;
VERIFY(menu.LoadMenu(IDR_POPUP_MENU));
CMenu* pPopup = menu.GetSubMenu(0);
ASSERT(pPopup != NULL);
pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, AfxGetMainWnd());
}
----------------------------------------------------------------------------
I Belive that this would be helpfull to u
JAYARAJ
|
|
|
|
|
Hi,
thank you very much !!!
Thats exactly what I searched !
|
|
|
|