|
Hello
On Windows NTFS based systems, after we create a user using the NetUserAdd WINAPI call and we subsequently delete the user from User Account/Control Panel, the references for that particular user in the sharing/security permissions of a file folder still remain. Are there any Windows API's I can use to delete all of those references?
-av
|
|
|
|
|
cgb143 wrote:
and wish to hide the tabs of several dialog boxes that are used as storage pages.
That sounds weird...
cgb143 wrote:
I cannot delete the pages as they are used to store variables.
[...]Can someone suggest how to modify the code to hide the tabs I do not wish to show, the application looks clumsy with 6 (out of 10) blank tabs.
Why don't you just stop using them "to store variables" so as to avoid using those tabs altogether?
cgb143 wrote:
MSDN Win32 Common Controls Part 6
I couldn't find that in MSDN. You are most likely seeing obsolete documentation.
cgb143 wrote:
See the code below:
if (bEnable)
{
m_DisabledPages.RemoveKey (nPage);
CTabCtrl* pTab = GetTabControl();
ASSERT (pTab);
TC_ITEM ti;
char szText[100];
ti.mask = TCIF_TEXT | TCIF_STATE;
ti.dwState = 0x00;
ti.dwStateMask = 0x00;
ti.pszText = szText;
ti.cchTextMax = 100;
}
[...].
You are creating a TC_ITEM named ti, loading some values in it, and then doing nothing...
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Jose Lamas Rios wrote:
cgb143 wrote:
and wish to hide the tabs of several dialog boxes that are used as storage pages.
That sounds weird...
and your point is ??
Jose Lamas Rios wrote:
cgb143 wrote:
I cannot delete the pages as they are used to store variables.
[...]Can someone suggest how to modify the code to hide the tabs I do not wish to show, the application looks clumsy with 6 (out of 10) blank tabs.
Why don't you just stop using them "to store variables" so as to avoid using those tabs altogether?
The application .EXE is around 500Kbytes, the entire program was written around this structure. I do not want to re-write it.
Jose Lamas Rios wrote:
cgb143 wrote:
MSDN Win32 Common Controls Part 6
I couldn't find that in MSDN. You are most likely seeing obsolete documentation.
Well I find it very easily. Visual Studio 6 - Help - Common Controls.
Jose Lamas Rios wrote:
You are creating a TC_ITEM named ti, loading some values in it, and then doing nothing...
this is a small part of the code that SHOULD enable/disable the tab.
I guess that you do not understand the structure hence the 'no -answer'. It's easy to criticise others, some strive to avoid it.
|
|
|
|
|
Hi,
I'm working on a application using quite a lot of GDI+, both printing and for the regular SDI view. (Same program as in the post below)
Everything is working fine in the regular view and print preview. And normally everything is working fine when printing.
My problem is supporting old hardware Some of the people that tested my software is using windows 98, and printing HP 540 Deskjet. Instead of the usual output, either color or b/w, the page prints with inverted colors. In other words, what should be printed as black comes out as white, and what should be white comes out as black.
I can't ignore this problem even though the hardware having problems is *old*, many of my target users is using that old HW.
I've made sure the printer drivers is the latest, GDI+ which I use for printing is working fine in both regular view and print preview, so that's basically out of the question.
I tried printing with the same computer on a newer printer which worked fine.
Anyone got any ideas?
|
|
|
|
|
Just guessing...
How does printing from other programs work?
Have you checked the printer settings (things like "color space", RGB vs CYM, paper type, or anything that looks suspicious)?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
hey,
Here is a wierd problem I've been breaking my head over for the last couple of days........ I am writing a program in VC which reads information off a window written in VB using the windows handles which I obtain programatically (and which can be viewed by Spy++). The object that I want to read stuff from contains 4 other objects
1. A drop down
2. Label (which I want to read)
3. A Tree
4. Some gif
Through Spy++ when I view this object within the VB application it shows it as "ThunderRT6UserControlDC" ( which is a VB thing ). However I cannot view 1 and 2 through Spy ++ while I can view 3 and 4....now I know that 1 and 2 are a part of the "ThunderRT6UserControlDC" cause I can hide the parent and all 1,2,3 and 4 disappear. If I can get the handle to 2 I can read in the text
Someone PLZZZZZZZZZZZZZZ help me with this its killing me.
To show it disgramatically -->
"ThunderRT6UserControlDC"
------------------------------
+ 2 +
+ 1 4 +
+ 3 +
+ +
------------------------------
|
|
|
|
|
Hi,
I've been working on a MFC application and am basically finishing up the latest bugs.
I've used the standard CArchive class for files, but when opening files there's a problem.
When I am opening files through my program - no problem. Everything working as it should.
However, when opening the files through windows (i.e. double clicking the files, or right-clicking and choosing open), I get an error message. The file opens as it should, but at the same time, I'm getting an error something like this (Directly translated from Norwegian, so not litterary this text): "Can't find {Filename}. Make sure you typed the name right, and try again. If you want to search for a file, click Start and then Search."
Even though I didn't provide any code here, anyone got an idea what's going on?
|
|
|
|
|
I have a dialog that has 2 radio buttons and 2 edit boxes. I would like to disable one of the edit boxes if a specific button is pressed.
Any help? I am using VC++ 6.
Thanks, Alex
|
|
|
|
|
|
|
(GetDlgItem(IDC_MY_EDIT))->EnableWindow(FALSE);
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
HI!
Maybe someone can help me out!
I got:
Stuct OPENFILENAME
ofn.lpstrFile = szFileName;//char[]
I need to convert szFileName to const WCHAR*
for this GDI+ Consrtuctor:
Image( const WCHAR *filename,
BOOL useEmbeddedColorManagement
);
Thanks
lemi
|
|
|
|
|
If you have UNICODE and _UNICODE defined, I think all you'd need to do is make szFileName be a WCHAR too, since lpstrFile will be pointing to a LPWSTR .
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
Last but not the Least, you can try wcstombs and mbstowcs too!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
In a Visual Studio 6.0 project, I am not getting any more than a single WM_NOTIFY to my CChildView for the child CHeaderCtrl - I want notification in the CChildView when the dividers are altered - meaning the column widths are changed.
I created a default MFC SDI CMainFrame/CChildView program without document support.
I added a CHeaderCtrl as a member of the CChildView, and override the Create of CChildView to create the header control. The header control appearrs to be crewated correctly.
if( !m_wndHeaderCtrl.Create(HDS_HOTTRACK|HDS_FULLDRAG|WS_CHILD|WS_VISIBLE, rect, this, MHDR_CTRL_ID) ){<br />
TRACE0("Failed to create header control window\n");<br />
return FALSE;<br />
}
I used ClassWizard to override the OnChildNotify , but I don't get any messages after the windows are created.
Any ideas?
|
|
|
|
|
Override OnNotify instead
BOOL CChildView::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) <br />
{<br />
switch( wParam ){<br />
<br />
case MHDR_CTRL_ID:{<br />
NMHDR* pNMHDR = (NMHDR*)lParam;<br />
switch( pNMHDR->code ){<br />
case HDN_ENDTRACK:<br />
TRACE0("Header control end track message\n");<br />
break;<br />
}<br />
}break;<br />
}<br />
<br />
<br />
return CWnd ::OnNotify(wParam, lParam, pResult);<br />
}
|
|
|
|
|
In Windows XP applications (especially MS Office), sometimes instead of spitting out an annoying message box at you, the application just shows a yellow bubble with an informational warning in it that doesn't prevent you from doing what you are doing and doesn't require you to press any buttons (the bubble is like the one that says "Windows updates are ready to install" in System Tasks), it automatically fades after a few seconds. Since I've seen it so often in Windows XP, I was just wondering if there was an easy way to tell windows to make one of those with desired text. By an easy way I mean something as easy as telling windows to make a message box? Thanks.
|
|
|
|
|
Anonymous wrote:
a yellow bubble with an informational warning in it
Also known as a tool tip control. There are plenty of MSDN examples that you can search for.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Check out EM_SHOWBALLOONTIP - it's easy to use.
|
|
|
|
|
|
If any one know how HyperTerminal communicate with COM port , please share with me .
( I know that HyperTerminal don't use ReadFile and WriteFile API to communicate with COM port. )
Thanks .
|
|
|
|
|
a make a program (chk.exe) with Visual C++ 7, and i want to check from this program if another process (doct.exe) is already running. If doct.exe is running then do nothing, but if does't then i want to terminate(exit)chk.exe How can i do this
|
|
|
|
|
Is EnumProcesses() , or the Process32First() /Process32Next() pair of any help?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Thanks but... i am very veryyy new in C++ and i need i little more help...
|
|
|
|