Search Results

Showing results 1 to 31 of 31
Search took 0.01 seconds.
Search: Posts Made By: risa
Forum: C++ Jul 23rd, 2009
Replies: 7
Views: 724
Posted By risa
Yes i tried this too,but in vain

BOOL CMyTabCtrl::OnEraseBkgnd(CDC* cdc)
{
CTabCtrl::OnEraseBkgnd(cdc);

CRect Rect;
COLORREF color = RGB(0,108,175);
GetClientRect(&Rect);...
Forum: C++ Jul 23rd, 2009
Replies: 7
Views: 724
Posted By risa
The link:
http://support.microsoft.com/support/kb/articles/Q179/9/09.ASP
only shows the "coloring" of individual tabs on the control and not the BG color of the tab control.Do you have some another...
Forum: C++ Jul 23rd, 2009
Replies: 7
Views: 724
Posted By risa
The above code only changed the tab colour and i donot want that.I want to colour the whole of the tab background to black.I derived a class from CTabCtrl and implemented ON_WM_ERASEBKGND but it did...
Forum: C++ Jul 22nd, 2009
Replies: 7
Views: 724
Posted By risa
I have Tabctrl in a dialog.I want to set its background colour for each tab .I tried ON_WM_DRAWITEM but the control never comes in OnDrawItem().Can you help?

#define RED RGB(255,0,0)
#define...
Forum: C++ Jul 21st, 2009
Replies: 4
Views: 379
Posted By risa
Hi,
How to set background image of CTreeCtrl? And also how can i set different colours to different items of CtreeCtrl?
Forum: C++ Jul 18th, 2009
Replies: 1
Views: 362
Posted By risa
Hi,
How to remove OK and Cancel button of propertysheet?
And also how to remove tiltle bar of propertysheet just showing the tabs of property pages?
Forum: C++ Jul 18th, 2009
Replies: 6
Views: 262
Posted By risa
The caller must free the lpszProxy, lpszProxyBypass and lpszAutoConfigUrl strings in the WINHTTP_CURRENT_USER_IE_PROXY_CONFIG structure if they are non-NULL. Use GlobalFree to free the strings.

...
Forum: C++ Jul 17th, 2009
Replies: 6
Views: 262
Posted By risa
well thanks for your reply,,,i already searched on google but couldnt find any solution and i guess its better to search there more instead wasting time in reading that stupid doc
Forum: C++ Jul 17th, 2009
Replies: 6
Views: 262
Posted By risa
hi,,,
i am getting memory leaks in my application when i use winhttp functions like WinHttpGetIEProxyConfigForCurrentUser(),WinHttpOpen(),,,,and many others,,,,,how to deal with it???
Forum: C++ Mar 6th, 2009
Replies: 8
Views: 680
Posted By risa
How can i prevent a dialog closing by Alt+F4 ?
I am using PreTranslateMessage(),,,,what is the Virtual key #define for Alt+F4 or is there any other way?,,,,thank you
Forum: C++ Nov 20th, 2008
Replies: 1
Views: 255
Posted By risa
Hi,
How to insert a combox to a column of list ctrl in MFC?....such tht i can select a particular item from a list of items in the combo box of list ctrl column....plz help
Forum: C++ Nov 17th, 2008
Replies: 2
Views: 915
Posted By risa
well i get this crash before start of my application i.e before entering InitInstance(),,,,so i guess its not a problem of buffer over run or un-initialized variables or pointers,,,
Forum: C++ Nov 17th, 2008
Replies: 2
Views: 915
Posted By risa
hi,
I get a crash as
"Unhandled exception at 0x5f4335bb (MFC42D.DLL) in VMFirewall.exe: 0xC0000005: Access violation reading location 0x00000000."
in D:\Program Files\Microsoft...
Forum: C++ Jul 8th, 2008
Replies: 5
Views: 2,564
Posted By risa
Thanks a lot ....#pragma warning(disable:4996) has solved my problem temporarily.....but later it may give problem as suppressing warning will give compile time errors for these functions as the...
Forum: C++ Jul 8th, 2008
Replies: 5
Views: 2,564
Posted By risa
.....thanks for this quick help..,,,, but both of these funtions have different parameters,,,strcpy_s has a additional parameter to strcpy which is the size of buffer,,,..hence #define strcpy_s...
Forum: C++ Jul 8th, 2008
Replies: 5
Views: 2,564
Posted By risa
String functions like strcpy,strcat,itoa...shows warning as "declared deprecated" in Visual Studio 8.0 instead it suggests to use functions which are enhanced secure versions of the same such as...
Forum: C++ May 5th, 2008
Replies: 0
Views: 451
Posted By risa
MapFileAndCheckSum returns CHECKSUM_MAPVIEW_FAILURE(Could not map a view of the file) for file of size 758MB and above.For size upto 757MB it returns CHECKSUM_SUCCESS(normal behaviour).What is the...
Forum: C++ Apr 24th, 2008
Replies: 3
Views: 1,048
Posted By risa
1)#define KP_PRODUCTTYPE _T("KeyPoint")
string ProductType = KP_PRODUCTTYPE;

Memory leak report:
---------- Block 3169 at 0x01DC4460: 16 bytes ----------
Call Stack:
...
Forum: C++ Apr 24th, 2008
Replies: 3
Views: 1,048
Posted By risa
hi,
whenever std::string is assigned to another std::string its giving me a memory leak,why is it so....generally std::string's destructor takes care of freeing it.......can anybody help me wht...
Forum: C++ Mar 7th, 2008
Replies: 6
Views: 3,546
Posted By risa
yes.............virtualalloc() is returning NULL hence when used in pBuffer it crashes...........i want to allocate more than 400MB upto say 1GB.
Forum: C++ Mar 4th, 2008
Replies: 6
Views: 3,546
Posted By risa
DWORD dsize = 468178553;
PBYTE pBuffer=(PBYTE)::VirtualAlloc(NULL,dsize ,MEM_COMMIT,PAGE_READWRITE);

but still its crashing.......i hav 1GB of RAM and my virtual memory settings are:
initial...
Forum: C++ Mar 3rd, 2008
Replies: 6
Views: 3,546
Posted By risa
Thank you..... i will try out ...........
Forum: C++ Feb 29th, 2008
Replies: 6
Views: 3,546
Posted By risa
I did HANDLE hHeap = GetProcessHeap(); which gives me the handle to the heap of the process then i did
DWORD dsize = 468178553;
(near pointer)PBYTE pBuffer = (LPBYTE)HeapAlloc(hHeap, 0, size); ...
Forum: C++ Feb 13th, 2008
Replies: 3
Views: 1,550
Posted By risa
Thanks for the solution but the SetTimer() will again start the timer from 0 and not from the time where it was stopped.
Forum: C++ Feb 12th, 2008
Replies: 3
Views: 1,550
Posted By risa
Scenario:
I hav set a timer using SetTimer(),after timeout my application gets a WM_TIMER and it exits.
I Want: to pause this timer before a particular process and again restart it when the process...
Forum: C++ Jul 10th, 2007
Replies: 9
Views: 3,285
Posted By risa
[no there is only one thread (sorry if my statement indicated so)
i hav called thread by using AfxBeginthread in onInitdialog of Dialog box and wants to close this dialog Box only after the thread...
Forum: C++ Jul 10th, 2007
Replies: 9
Views: 3,285
Posted By risa
ur solution is not helping me frnd......i hav called a thread in onInitDialog of a dialog box(onInitDialog is called from DoModal()) .in the tread i hav done some processing and after it gets...
Forum: C++ Jul 9th, 2007
Replies: 9
Views: 3,285
Posted By risa
There is no X button and i want to close this dialog box after a particular thread ends
Forum: C++ Jul 9th, 2007
Replies: 9
Views: 3,285
Posted By risa
How to close dialog box if it doesnt hav OK and CANCEL Button in windows programming.the dialog box is shown with DoModal which inturn calls onInitDialog().But how to close it ?does EndDialog hepls...
Forum: Windows NT / 2000 / XP Jul 6th, 2007
Replies: 3
Views: 6,043
Posted By risa
How to close dialog box if it does not has OK and CANCEL
Forum: C++ Jul 2nd, 2007
Replies: 10
Views: 4,520
Posted By risa
Showing results 1 to 31 of 31

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC